Home  >  Article  >  Backend Development  >  网页爬虫 - php爬虫库推荐

网页爬虫 - php爬虫库推荐

WBOY
WBOYOriginal
2016-06-06 20:32:001047browse

在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

Statement:
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