Ger2EX
V2EX  ›  问与答

想用 curl 抓取 http://q.10jqka.com.cn/gn/detail/field/264648/order/desc/page/1/ajax/1/code/301997 的内容,抓不到,求解!

  •  
  •   Ger2EX · Dec 11, 2019 · 2089 views
    This topic created in 2355 days ago, the information mentioned may be changed or developed.
    4 replies    2019-12-11 17:25:50 +08:00
    toomwan
        1
    toomwan  
       Dec 11, 2019   ❤️ 1
    加个 cookie
    b821025551b
        2
    b821025551b  
       Dec 11, 2019   ❤️ 1
    curl 'http://q.10jqka.com.cn/gn/detail/field/264648/order/desc/page/1/ajax/1/code/301997' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' -H 'Referer: https://www.v2ex.com/t/627997' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7,mt;q=0.6' --compressed --insecure
    opengps
        3
    opengps  
       Dec 11, 2019   ❤️ 1
    reffer
    ua
    cookie 等,浏览器里直接打开有的,都带上
    Ger2EX
        4
    Ger2EX  
    OP
       Dec 11, 2019
    感谢,各位!
    明白了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   947 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 19:19 · PVG 03:19 · LAX 12:19 · JFK 15:19
    ♥ Do have faith in what you're doing.