Closed ThatZacman closed 7 years ago
I've just installed grequests and I'm trying to run the following code:
import grequests urls = ['http://localhost/test', 'http://localhost/test']
import grequests
urls = ['http://localhost/test', 'http://localhost/test']
params = {'a':'b', 'c':'d'} rs = (grequests.post(u, data=params) for u in urls) grequests.map(rs)
params = {'a':'b', 'c':'d'}
rs = (grequests.post(u, data=params) for u in urls)
grequests.map(rs)
But it won't as it can't find the attribute map. How do I go about fixing this?
Thanks in advance
Hello @ThatZacman, Did you find the solution to the problem: module 'grequests' has no attribute 'map'. Thanks.
I've just installed grequests and I'm trying to run the following code:
import grequests
urls = ['http://localhost/test', 'http://localhost/test']
params = {'a':'b', 'c':'d'}
rs = (grequests.post(u, data=params) for u in urls)
grequests.map(rs)
But it won't as it can't find the attribute map. How do I go about fixing this?
Thanks in advance