V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Ger2EX
V2EX  ›  问与答

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

  •  
  •   Ger2EX · 2019-12-11 14:34:11 +08:00 · 1097 次点击
    这是一个创建于 1590 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2019-12-11 17:25:50 +08:00
    macwhirr
        1
    macwhirr  
       2019-12-11 14:50:41 +08:00   ❤️ 1
    加个 cookie
    b821025551b
        2
    b821025551b  
       2019-12-11 14:52:09 +08:00   ❤️ 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  
       2019-12-11 14:54:52 +08:00   ❤️ 1
    reffer
    ua
    cookie 等,浏览器里直接打开有的,都带上
    Ger2EX
        4
    Ger2EX  
    OP
       2019-12-11 17:25:50 +08:00
    感谢,各位!
    明白了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3254 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:58 · PVG 20:58 · LAX 05:58 · JFK 08:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.