我尝试过引用https://datascienceplus.com/zomato-web-scraping-with-beautifulsoup-in-python/进行web抓取 只是复制并粘贴了站点上的代码import requests
#Used headers/agent because the request was timed out537.36 (KHTML, like Gecko) Chrome&
我正在做一个项目,希望分析德里Zomato上列出的餐厅的卫生评级。我可以使用Zomato /search API获得餐厅的详细信息,但该API不提供餐厅的卫生评级。# import the library we use to open URLsheaders = {'User-Agent': 'MozillaHTML into the page variable
#page = urllib.r
我正在使用Selenium登录到网页,并获得网页进行抓取,我能够获得该页面。我已经在html中搜索了我想要抓取的表。table_devicesensortable">rawpage=driver.page_source #storing the webpage in variable
souppage=BeautifulSouptbody=souppage.find('table', attrs={'id':'table_