leedstyh
V2EX  ›  问与答

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

  •  
  •   leedstyh · Oct 16, 2014 · 3419 views
    This topic created in 4424 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
    xiaozi
    Oct 17, 2014
    1
    https的问题,你会发现实际截图的页面地址变成了about:blank,你截图github的时候也会这样
    leedstyh
    leedstyh
    OP
    Oct 17, 2014❤️1
    2
    @xiaozi 但是,我写的脚本之前一直可以正常工作的,就今天突然就不好使了

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

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