bitkwan
V2EX  ›  PHP

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

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

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