V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2019-12-07 22:23:29 +08:00 · 3575 次点击
    这是一个创建于 1574 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

    5 条回复    2019-12-08 09:20:21 +08:00
    zsdroid
        1
    zsdroid  
       2019-12-07 22:38:12 +08:00
    把后缀 shtml 改为 jpg 即可
    cccer
        2
    cccer  
       2019-12-07 22:41:25 +08:00
    需要携带 Cookie,可以先再浏览器访问一次,然后把 Cookie 复制下来即可。
    zsdroid
        3
    zsdroid  
       2019-12-07 22:56:55 +08:00
    #1 加 Accept,User-Agent,Cookie
    ClericPy
        4
    ClericPy  
       2019-12-08 00:12:06 +08:00
    教科书般的前端... .gov 网站也是卧虎藏龙
    wd
        5
    wd  
       2019-12-08 09:20:21 +08:00 via iPhone
    你下载了保存成 xx.jpg 然后打开看看是什么...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2666 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:24 · PVG 23:24 · LAX 08:24 · JFK 11:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.