V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · May 28, 2019 · 1887 views
    This topic created in 2540 days ago, the information mentioned may be changed or developed.

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

    6 replies    2019-05-29 17:14:13 +08:00
    leegoo
        1
    leegoo  
    OP
       May 28, 2019
    好像还不能发链接..所以我拆开了
    leegoo
        2
    leegoo  
    OP
       May 28, 2019
    @leegoo oschina 后面去掉空格
    freemoon
        3
    freemoon  
       May 28, 2019
    start_request 里面的请求那步卡住了?抓包看下,写法没问题
    ec0
        4
    ec0  
       May 28, 2019
    UserNameInput 和 PasswordInput 需要加密以后的值,不能是 xx
    leegoo
        5
    leegoo  
    OP
       May 29, 2019
    @ec0 因为不能暴露我自己的信息,所以我用 xx 代替了...
    leegoo
        6
    leegoo  
    OP
       May 29, 2019
    @lasuar 解决了,在下载器中间 process_request 方法里面,我 return request, 不做任何处理就没有问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4917 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:52 · PVG 17:52 · LAX 02:52 · JFK 05:52
    ♥ Do have faith in what you're doing.