Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何使用BeautifulSoup刮取下一页?_Python_Web Scraping_Beautifulsoup_Screen Scraping - Fatal编程技术网

Python 如何使用BeautifulSoup刮取下一页?

Python 如何使用BeautifulSoup刮取下一页?,python,web-scraping,beautifulsoup,screen-scraping,Python,Web Scraping,Beautifulsoup,Screen Scraping,我想在阅读本站漫画时略读下一章:,这不是一个简单的链接,所以我不能使用计数器,它像1,2,3。。。9,a,b,c,d。我尝试使用计数器,但没有结果。您可以使用此示例来对请求进行分页: 导入请求 从bs4导入BeautifulSoup url=”https://www.mangaworld.io" 参数={“页面”:1} 对于范围(1,4)内的页面:#对不起,我的错。。我想把所有章节都写在一本书里。链接是这样的

我想在阅读本站漫画时略读下一章:
,这不是一个简单的链接,所以我不能使用计数器,它像1,2,3。。。9,a,b,c,d。我尝试使用计数器,但没有结果。

您可以使用此示例来对请求进行分页:

导入请求
从bs4导入BeautifulSoup
url=”https://www.mangaworld.io"
参数={“页面”:1}

对于范围(1,4)内的页面:#对不起,我的错。。我想把所有章节都写在一本书里。链接是这样的