meloncrashed
V2EX  ›  问与答

无法使用 python 的 requests 与 urllib.urlretrieve 下载原尺寸的 jpg 图片

  •  
  •   meloncrashed · Dec 17, 2016 · 2385 views
    This topic created in 3459 days ago, the information mentioned may be changed or developed.

    直接在浏览器中可以使用保存图片地址,并且可以单独请求图片,并可以正常显示,但是使用程序下载就只能得到很小的 160x160 图片。

    我尝试过改 http request 的表头, user-agent 也改为跟浏览器一致,未果。

    请问网站是如何实现的? 该使用什么步骤得到原始尺寸图片

    1 replies    2016-12-18 12:19:32 +08:00
    cctv6
        1
    cctv6  
       Dec 18, 2016 via iPhone
    有没有可能是 cookie ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2272 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:10 · PVG 00:10 · LAX 09:10 · JFK 12:10
    ♥ Do have faith in what you're doing.