bitkwan
V2EX  ›  PHP

有没有什么比较好抓取指定 html 标签中内容的库

  •  
  •   bitkwan · Aug 27, 2016 · 3873 views
    This topic created in 3612 days ago, the information mentioned may be changed or developed.
    想抓 google 和一些搜索引擎的结果。。
    不走 API 的话,
    有没有什么抓取指定标签的库...可用..?
    8 replies    2016-08-31 16:59:34 +08:00
    incrediblink
        1
    incrediblink  
       Aug 27, 2016
    Cheerio
    muziyue
        2
    muziyue  
       Aug 27, 2016
    simple_html_dom 语法类似 jquery
    tumb8r
        3
    tumb8r  
       Aug 27, 2016
    HTMLParser
    wildfates
        4
    wildfates  
       Aug 27, 2016
    PQuery
    jarlyyn
        5
    jarlyyn  
       Aug 27, 2016
    simple_html_dom

    Cheerio 不是 node 的么?
    macroideal
        6
    macroideal  
       Aug 28, 2016
    lxml, xpath
    Mac
        7
    Mac  
       Aug 28, 2016
    phpquery
    zhudl321
        8
    zhudl321  
       Aug 31, 2016
    phpquery
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 20:44 · PVG 04:44 · LAX 13:44 · JFK 16:44
    ♥ Do have faith in what you're doing.