python爬虫报错,求详细解释
如图importrequests,webbrowser,bs4res=requests.get("http://www.purepen.com/sgyy/001.html...
如图import requests,webbrowser,bs4res=requests.get("http://www.purepen.com/sgyy/001.html")res.raise_for_statussoup=bs4.BeautifulSoup(res.text,"html.parser")elems=soup.select("td")book=open("G:\\tc.txt","w")book.write(elems.getText())book.close()
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |