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
deepall
V2EX  ›  Python

scrapy-redis 如何实现 post 请求

  •  
  •   deepall · 2019-03-14 14:38:15 +08:00 · 2018 次点击
    这是一个创建于 1860 天前的主题,其中的信息可能已经有所发展或是发生改变。
    scrapy 可以通过重写 start_requests 方法实现 post 请求,请问 scrapy-redis 如何实现
    第 1 条附言  ·  2019-03-18 13:16:23 +08:00
    416828817,有解决办法者可联系此 QQ,有偿
    4 条回复    2019-12-03 12:14:44 +08:00
    adrianyoung
        1
    adrianyoung  
       2019-03-19 20:02:37 +08:00
    FormRequest 不起作用吗
    wuyue92tree
        2
    wuyue92tree  
       2019-03-22 17:21:50 +08:00
    data = {
    'username': 'user',
    'password': 'pwd'
    }

    req = scrapy.Request(url=url, method='POST',
    body=data,
    headers=self.headers)
    gitopen
        3
    gitopen  
       2019-11-30 16:52:18 +08:00
    楼主说的是用 scrapy-redis 时,怎么发 POST 请求,最近遇到这个问题,已经解决😊
    deepall
        4
    deepall  
    OP
       2019-12-03 12:14:44 +08:00
    @gitopen 我也解决了,开心
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1100 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:35 · PVG 02:35 · LAX 11:35 · JFK 14:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.