美丽的汤返回空值

时间:2017-03-16 00:25:52

标签: python beautifulsoup

我正在尝试使用Beautiful Soup在此website上检索包裹值。 enter image description here

但是,当我运行以下代码时,它返回一个空列表(而不是0787001作为列表中的值):

import bs4, requests
html = requests.get("http://50.17.237.182/PIM/?search=400%20Van%20Ness%20Ave")
soup = bs4.BeautifulSoup(html.text, "html.parser")
soup.select("table.reportData:nth-child(90) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(3)")

有没有人能解决这个问题?

0 个答案:

没有答案
相关问题