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

网页爬虫 - php爬虫库推荐

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:32:00
Original
1120 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:
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 Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template