使用BeautifulSoup进行网页抓取(图形抓取)

2024-06-26 02:16:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我想刮掉下面的网页。 https://stadt-aachen.e2watch.de/details/objekt/175 我想得到任何特定日期的页面图表。我不明白我应该写哪门课来复习。 我正在使用下面的代码,但得到的是空字符串

import bs4
import requests
from bs4 import BeautifulSoup
r= requests.get('https://stadt-aachen.e2watch.de/details/objekt/175')
soup = bs4.BeautifulSoup(r.text,"xml")
soup.find_all('div',{'class':'highcharts-container '})

Tags: httpsimport网页图表de页面detailsrequests