为此,我想解析使用python、BeautifulSoup和熊猫的html。但是,当我用BeautifulSoup解析html代码时,我找不到任何表:>>> # import libraries >>> from bs4> # find the first table in the code
>>> print(soup.find('table'))
我使用python2.7.12中的请求和BeautifulSoup模块运行了这个web抓取练习。我的问题是,我似乎无法让soup对象基于id返回一个特定的tr,以及一些其他带有id的html元素,这些元素是我随机选择的,包括下面的print语句中的元素。知道为什么不管用吗?import requests'User-Agent': 'Mozilla/5.0 (Windows N