推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
oneshad
V2EX  ›  Python

验证码的地址加密了?

  •  
  •   oneshad · Dec 7, 2019 · 4777 views
    This topic created in 2502 days ago, the information mentioned may be changed or developed.

    我向查下专利信息,验证码直接用 chrome 打开能看到图片,但是用 python requests 下载(设置了 User-Agent )的话,是一个加密网页。

    有人知道该怎么得到验证码 jpg 图片吗?

    http://pss-system.cnipa.gov.cn/sipopublicsearch/portal/login-showPic.shtml

    5 replies  •  2019-12-08 09:20:21 +08:00
    zsdroid
        1
    zsdroid  
       Dec 7, 2019
    把后缀 shtml 改为 jpg 即可
    cccer
        2
    cccer  
       Dec 7, 2019
    需要携带 Cookie,可以先再浏览器访问一次,然后把 Cookie 复制下来即可。
    zsdroid
        3
    zsdroid  
       Dec 7, 2019
    #1 加 Accept,User-Agent,Cookie
    ClericPy
        4
    ClericPy  
       Dec 8, 2019
    教科书般的前端... .gov 网站也是卧虎藏龙
    wd
        5
    wd  
       Dec 8, 2019 via iPhone
    你下载了保存成 xx.jpg 然后打开看看是什么...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5604 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 08:47 · PVG 16:47 · LAX 01:47 · JFK 04:47
    ♥ Do have faith in what you're doing.