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

求 Python 会爬虫的大佬帮一个忙(有偿)

  •  
  •   jiaxiangcheng · Mar 3, 2021 · 2924 views
    This topic created in 2072 days ago, the information mentioned may be changed or developed.
    我在重现一个 rest api 的 request 的时候,他那个 header 里面的 cookies 我不知道怎样去生成。在浏览器我手动去按那个按钮让它自己发 request 然后把它用的 cookies 复制粘贴下来是有用的,但是每过几十秒就过期了,然后接下来每次访问都是被 access denied 。我想做一个自动 farm cookies 的 python 脚本,有没有人愿意帮忙?
    6 replies  •  2021-03-05 10:45:58 +08:00
    bbsabc2
    bbsabc2
    Mar 4, 2021
    1
    两个方案
    1 、分析原代码,找到 cookie 的修改方法
    2 、直接用 python+selenium+chrome
    frankyxu
    frankyxu
    Mar 4, 2021
    2
    Z3VhcGllckAxMjYuY29t,可以试试,前面是 base64 邮箱编码
    evil0harry
    evil0harry
    Mar 4, 2021
    3
    client = requests.Session()
    client.get()
    SimbaPeng
    SimbaPeng
    Mar 4, 2021
    4
    模拟登录,保存 Cookies 。失效重新登录,刷新 Cookies
    ben5959
    ben5959
    Mar 4, 2021
    5
    能给出网站或者接口地址么
    jeeyong
    jeeyong
    Mar 5, 2021
    6
    看到有偿, 我来了.
    但是你说的问题, 好像不太好意思收钱....
    方便的话放地址, 描述你的需求.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3057 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 04:41 · PVG 12:41 · LAX 20:41 · JFK 23:41
    ♥ Do have faith in what you're doing.