fkbd
V2EX  ›  问与答

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

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

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