-1
我試圖讓所有的圖像的src /超鏈接形成的網頁如何獲得網站圖片的src使用BeautifulSoup
import requests
from bs4 import BeautifulSoup
image_list = []
r = requests.get('https://example.com')
soup = BeautifulSoup(r.content)
for link in soup.find_all('img'):
image_list.append(link)