【发布时间】:2020-03-05 20:35:51
【问题描述】:
我正在使用 BeautifulSoup 从这个网站上抓取https://lawyers.justia.com/lawyer/michael-paul-ehline-85006
我不希望在我的输出中出现赞助商列表:
我的代码:
for o in soup.findAll('div', attrs={"class": "block-wrapper"}):
for de in o.findAll("li"):
if de != []:
de=remove_tags(str(de))
print (de)
python 中的输出: OUTPUT IMAGE
【问题讨论】:
标签: python web beautifulsoup screen-scraping