回复内容: 在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
