(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.
© 2024 OneMinuteCode. All rights reserved.