【发布时间】:2020-04-07 12:52:32
【问题描述】:
我正在尝试使用 beautifulsoup 从以下链接中提取一些信息: https://aiesec.org/opportunity/1212595 我需要的是项目名称和开始日期。但是,我无法提取名称,它总是给出无。
title = soup.find(lambda tag: tag.name == 'div' and tag['class'] == ['opportunity-tile', ''])
经过进一步分析,我发现它甚至没有得到 div 标签,因为以下返回 none "
print(soup.find_all("div"))
我哪里错了?
【问题讨论】:
标签: python-3.x selenium web-scraping beautifulsoup