leedstyh
V2EX  ›  问与答

有对 casperjs 熟悉的吗,请教个问题(或者对页面抓取/爬虫比较熟悉的)

  •  
  •   leedstyh · Oct 16, 2014 · 3165 views
    This topic created in 4252 days ago, the information mentioned may be changed or developed.

    这个页面:https://www.briefing.com/login/PlatinumLogin.aspx

    我用casperjs获取的时候,得不到正确的页面,请问是他是通过什么判断是程序来访问的。我也设置了UA,之前一直都可以获取的,就今天不行了!

    3 replies    2014-10-18 07:57:29 +08:00
    xiaozi
        1
    xiaozi  
       Oct 17, 2014
    https的问题,你会发现实际截图的页面地址变成了about:blank,你截图github的时候也会这样
    leedstyh
        2
    leedstyh  
    OP
       Oct 17, 2014   ❤️ 1
    @xiaozi 但是,我写的脚本之前一直可以正常工作的,就今天突然就不好使了

    返回的是`<html><head></head><body></body></html>`
    xiaozi
        3
    xiaozi  
       Oct 18, 2014
    @leedstyh 是这样的,你可以升级一下openssl库,我本来也这样,现在好了

    http://tool.lu/site/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3193 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:43 · PVG 20:43 · LAX 05:43 · JFK 08:43
    ♥ Do have faith in what you're doing.