首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX 提问指南
广告
V2EX
›
问与答
gevent 的 patch_all() 已经对 requests 无效了?
dingyaguang117
·
2015-07-31 10:53:32 +08:00
· 1058 次点击
这是一个创建于 3355 天前的主题,其中的信息可能已经有所发展或是发生改变。
我记得去年我做爬虫的时候,还是可以的啊, 下面的代码跑起来极其慢,应该是socket阻塞了
https://gist.github.com/dingyaguang117/088d07216ca52e13288a
显示 Gist 代码
这个下面的回答似乎有问题
http://stackoverflow.com/questions/9501663/how-enable-requests-async-mode
另外我看requests官方文档都推荐了 grequests
第 1 条附言 ·
2015-07-31 12:45:42 +08:00
看了一下grequest的源码,发现跟我的做法是一样的
https://github.com/kennethreitz/grequests/blob/master/grequests.py
目前尚无回复
Requests
爬虫
grequests
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2151 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 06:54
·
PVG 14:54
·
LAX 23:54
·
JFK 02:54
Developed with
CodeLauncher
♥ Do have faith in what you're doing.