推荐学习书目
› 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
wind198501
V2EX  ›  Python

怎么用python带上保存好的cookies打开默认浏览器?

  •  
  •   wind198501 · Jan 31, 2013 · 5784 views
    This topic created in 4994 days ago, the information mentioned may be changed or developed.
    我将登录网站的cookies已保存为文件,想用python带上cookies文件打开系统默认的浏览器进行自动登录操作,不知道怎么实现。一定要系统默认浏览器打开啊,求教了
    4 replies  •  1970-01-01 08:00:00 +08:00
    xupefei
        1
    xupefei  
       Jan 31, 2013
    自己写一个网页, 里面用 POST 登陆,然后用默认浏览器打开这个页面。因为 JS 设置 cookie 可能会有跨域问题……
    详情可参考 Dropbox 客户端的 Launch Dropbox website 的做法。
    yangg
        2
    yangg  
       Jan 31, 2013
    是自己的网站么?类似qq点击进qq空间这种一般都是传一个clientkey的吧
    Part
        3
    Part  
       Jan 31, 2013
    windows?
    将cookies文件拷贝到浏览器cookies目录,then,打开浏览器,then ,自动登录,then,o.
    lerry
        4
    lerry  
       Jan 31, 2013
    我用的Chrome,用python把得到的cookie处理成特定格式,使用“Edit this cookie”这个插件导入,就ok了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2398 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:32 · PVG 20:32 · LAX 05:32 · JFK 08:32
    ♥ Do have faith in what you're doing.