摘要: import gevent import requests from gevent import monkey monkey.patch_all() def fetch_async(method, url, req_kwargs): print(method, url, req_kwargs) re 阅读全文
posted @ 2019-05-01 17:41 Hessen丶 阅读(248) 评论(0) 推荐(0) 编辑
摘要: from tornado.httpclient import AsyncHTTPClient from tornado.httpclient import HTTPRequest from tornado import ioloop def handle_response(response): "" 阅读全文
posted @ 2019-05-01 17:33 Hessen丶 阅读(226) 评论(0) 推荐(0) 编辑
摘要: from twisted.web.client import getPage, defer from twisted.internet import reactor def all_done(arg): reactor.stop() def callback(contents): print(con 阅读全文
posted @ 2019-05-01 17:27 Hessen丶 阅读(127) 评论(0) 推荐(0) 编辑