You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import aquests
import time
# https://github.com/hansroh/aquests
def request_finished(r):
return r.content
def gogo_quests(urls):
aquests.configure(10, callback=request_finished, force_http1=0)
for url in urls:
aquests.get(url)
aquests.fetchall()
Gives me:
import aquests
File "C:\Python27\lib\site-packages\aquests\__init__.py", line 6, in <module>
from . import lifetime, queue, request_builder, response_builder, stubproxy
File "C:\Python27\lib\site-packages\aquests\request_builder.py", line 1, in <module>
from .protocols.http import request as http_request, request_handler as http_request_handler
ImportError: No module named protocols.http
The text was updated successfully, but these errors were encountered:
I fixed this problem by adding missed (but no need in Py3.x) __init__.py but still you may have problems on Py 2.7. Because I do not support Python2.7 officially and haven't got any plan to for now.
Using
Gives me:
The text was updated successfully, but these errors were encountered: