(One answer) Three years ago
I'm scraping using Python's BeautifulSoup.
If you get the URL in the src of the img tag,
Would it be possible to display the image somewhere without saving it locally?
I look forward to hearing from you.
===
OS:Mac
Python: 2.7.10
libraries:
beautifulgroup4:4.6.1
lxml: 4.2.5
requests:2.21.0
===
python beautifulsoup
If the URL of the acquired image can be viewed by normal means, you can directly view it (=display) without saving it locally by generating HTML by yourself.
However, if the IMG tag references the image to a relative path, it must be placed in an absolute path starting with http
and so on in a timely manner.
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.