fkbd
V2EX  ›  问与答

在做爬虫的时候遇到一个问题,怎么用 php 采集到 input 中 value 的值呢?

  •  
  •   fkbd · Oct 11, 2015 · 2420 views
    This topic created in 3936 days ago, the information mentioned may be changed or developed.
    2 replies    2015-10-11 14:47:55 +08:00
    ss098
        1
    ss098  
       Oct 11, 2015
    可供选择的方法:

    - 正则表达式
    - DOM 解析
    iyaozhen
        2
    iyaozhen  
       Oct 11, 2015
    安利一个 PHP HTML DOM 解析库: https://github.com/bupt1987/html-parser
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3331 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:32 · PVG 08:32 · LAX 17:32 · JFK 20:32
    ♥ Do have faith in what you're doing.