fkbd
V2EX  ›  问与答

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

  •  
  •   fkbd · Oct 11, 2015 · 2440 views
    This topic created in 3959 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   ·   5391 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:47 · PVG 09:47 · LAX 18:47 · JFK 21:47
    ♥ Do have faith in what you're doing.