spyoungtech / grequests

Requests + Gevent = <3
https://pypi.python.org/pypi/grequests
BSD 2-Clause "Simplified" License
4.49k stars 331 forks source link

module 'grequests' has no attribute 'map' #102

Closed ThatZacman closed 7 years ago

ThatZacman commented 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']

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

cavilosa commented 2 years ago

Hello @ThatZacman, Did you find the solution to the problem: module 'grequests' has no attribute 'map'. Thanks.