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

Python scrapy yield 无法获取到返回内容

  •  
  •   leegoo · 2019-05-28 12:54:56 +08:00 · 1419 次点击
    这是一个创建于 1812 天前的主题,其中的信息可能已经有所发展或是发生改变。

    未满 30 天不能发代码片段吗?,,, 我只能把代码丢到开源中国了.麻烦大佬看一下 困扰一天了,我用 postman 可以返回结果 oschina .net/question/4096170_2306688

    6 条回复    2019-05-29 17:14:13 +08:00
    leegoo
        1
    leegoo  
    OP
       2019-05-28 12:55:20 +08:00
    好像还不能发链接..所以我拆开了
    leegoo
        2
    leegoo  
    OP
       2019-05-28 12:55:37 +08:00
    @leegoo oschina 后面去掉空格
    lasuar
        3
    lasuar  
       2019-05-28 14:25:14 +08:00
    start_request 里面的请求那步卡住了?抓包看下,写法没问题
    ec0
        4
    ec0  
       2019-05-28 16:41:40 +08:00
    UserNameInput 和 PasswordInput 需要加密以后的值,不能是 xx
    leegoo
        5
    leegoo  
    OP
       2019-05-29 17:12:16 +08:00
    @ec0 因为不能暴露我自己的信息,所以我用 xx 代替了...
    leegoo
        6
    leegoo  
    OP
       2019-05-29 17:14:13 +08:00
    @lasuar 解决了,在下载器中间 process_request 方法里面,我 return request, 不做任何处理就没有问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3088 人在线   最高记录 6547   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:59 · PVG 22:59 · LAX 07:59 · JFK 10:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.