网页爬虫 - php爬虫库推荐

WBOY
Release: 2016-06-06 20:32:00
Original
1020 people have browsed it

在github上搜了一下,感觉php没找到比较好的爬虫库,像python用个bs还是不错的,不知道php有木有像这种爽歪歪的爬虫库

回复内容:

在github上搜了一下,感觉php没找到比较好的爬虫库,像python用个bs还是不错的,不知道php有木有像这种爽歪歪的爬虫库

https://github.com/hightman/pspider

爬虫库是指dom操作?bs是BeautifulSoup吗?

php里面有两个用的比较多,一个是phpQuery,还有一个是Simple HTML DOM Parser, 前者基于dom,后者基于正则。

https://github.com/guzzle/guzzle

php没发现很好的爬虫库,写起来也比较繁琐,还是推荐python scrapy

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
Popular Tutorials
More>
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!