I've followed the grequests usage example, but I'm trying to add some progress feedback. A percentage of the completed requests. How could I achieve that?
import grequests
urls = [
'http://www.heroku.com',
'http://python-tablib.org',
'http://httpbin.org',
'http://python-requests.org',
'http://kennethreitz.com'
]
def feedback(r, **kwargs):
print "%s fetched." % r.url
return r
rs = (grequests.get(u, callback=feedback) for u in urls)
res = grequests.map(rs)