采集中,怎么获取文章分页

WBOY
Release: 2016-06-13 10:24:46
Original
744 people have browsed it

采集中,如何获取文章分页?
现在想写个php采集程序,采集分页文章,可是程序中,如何知道这篇文章最多有几页?采集中,又如何知道下一页的链接是什么(不是全部列出的)?

如果是全部列出所有的分页链接,那比较容易,如果是总有有10页,才列出5页呢?
1 2 3 4 5 下一页
这样的模式呢?

求程序的思路



------解决方案--------------------
一般url会有page参数。你根据page值做判断不就行了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!