【发布时间】:2020-09-14 17:00:33
【问题描述】:
我目前正在尝试抓取这个网站:http://www.laprensa.com.ar/ 在浏览器中查看 html 我发现它有几个名为“文章”的标签,所以我这样做了:
html = request.get('http://www.laprensa.com.ar/').text
soup = BeautifulSoup(html, 'html5lib')
articles = soup.findAll('article')
但我只能数到超过 30 个时才找到 10 个
有人可以帮我解决这个问题吗?
【问题讨论】:
-
当我访问
view-source:http://www.laprensa.com.ar/并搜索</article>时,实际上只有10个...... -
当我在浏览器中看到 html 有超过 10 个
标签: python beautifulsoup python-requests tags findall