madamros
V2EX  ›  问与答

爬虫程序关于 htmlunit 包中 htmlPage.executeJavascript()的问题

  •  
  •   madamros · Sep 27, 2015 · 2237 views
    This topic created in 3917 days ago, the information mentioned may be changed or developed.
    在使用 htmlunit 写爬虫程序时需要在一个页面中模拟在一 table 中的 input 输入查询信息,然后点击查询按钮得到查询结果。我首先获取了 该 input 对象并且修改了其值,然后又调用了 executeJavascript("此处是查询按钮 click 调用的方法"),但是最后页面的查询结果却并没有更新。
    madamros
        1
    madamros  
    OP
       Sep 27, 2015
    此网页使用了 BIEE 不知道有木有影响……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2716 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:07 · PVG 22:07 · LAX 07:07 · JFK 10:07
    ♥ Do have faith in what you're doing.