我正在从这个网址上抓取一些信息:https://www.rockethub.com/projects/34210-lunar-lion-the-first-ever-university-led-mission-to-the-moon#description-tab
一切都很好,直到我把描述擦掉。 我试了又试,但到目前为止还是失败了。 好像我找不到那个信息。这是我的密码:
html = urllib.urlopen("https://www.rockethub.com/projects/34210-lunar-lion-the-first-ever-university-led-mission-to-the-moon")
tree=BeautifulSoup(html, "lxml")
description=tree.find('div',{'id':'description_section','class':'description-section'})
你们有什么建议吗?你知道吗
我找到了如何用R报废:
您需要发出一个额外的请求来获取描述。下面是一个使用^{} +
BeautifulSoup
的完整工作示例:相关问题 更多 >
编程相关推荐