BeautifulSoup 獲取頁面中 圖片的src

 使用 find_all() 方法獲取全部的<img>標籤python img = soup.find_all('img') 獲得的結果是一個<img>標籤數組,使用 get() 獲取<img>的src數組 src=img[2].get('src')
相關文章
相關標籤/搜索