Asynchronous Requests with Python requests

前端 未结 12 1421
予麋鹿
予麋鹿 2020-11-22 08:47

I tried the sample provided within the documentation of the requests library for python.

With async.map(rs), I get the response codes, but I want to get

12条回答
  •  眼角桃花
    2020-11-22 09:13

    I have also tried some things using the asynchronous methods in python, how ever I have had much better luck using twisted for asynchronous programming. It has fewer problems and is well documented. Here is a link of something simmilar to what you are trying in twisted.

    http://pythonquirks.blogspot.com/2011/04/twisted-asynchronous-http-request.html

提交回复
热议问题