为什么我不能通过beatifulsoup爬行此页面?

时间:2019-12-18 12:22:15

标签: python beautifulsoup web-crawler

我无法通过beatifulsoup从此页面抓取新闻标题。

http://www.shedunews.com/shanghai.html

html = urlopen("http://www.shedunews.com/shanghai.html")  
bs = BeautifulSoup( html, "html.parser", from_encoding="cp936") 
print(bs)

我想收集新闻标题。但是,新闻标题中没有任何数据已爬网整个页面。我认为此页面上的数据爬网有限制。我该如何解决?

0 个答案:

没有答案
相关问题