简体   繁体   English

如何使用 Python 从网页中获取数据?

[英]How do I can get the data from a web page with Python?

I made a code where I got the data from a web page.我制作了一个代码,从网页获取数据。 My problem is that I could only get the first page of the site and it has over than 40 tabs.我的问题是我只能获得网站的第一页,而且它有超过 40 个标签。 How can I take the others pages?我怎样才能获取其他页面?

I tried use for to take the others pages, but it doesn't work.我尝试使用 for 获取其他页面,但它不起作用。 I expected to get 1.406 registers but it's only returning 37 (All the data from first page)我希望得到 1.406 个寄存器,但它只返回 37 个(第一页的所有数据)

this is my code这是我的代码

Get HTML of next page's link in lists before extracting data from it.在从中提取数据之前获取lists中下一页链接的 HTML。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM