Jul-21-2019, 08:08 AM
So. I am getting links from a website. Storing them in array and then iterating over them.
But the grequests.map() is sooooo slow. Any idea what can cause this? Or I am not using it right. Or maybe there is better library or a way to send async request to links to check if they work.
I need to make this program fast because there is approx 70 links per page.
And also is there a way to get response code with grequests?
1 2 |
rs = (grequests.get(d) for d in data) responses = grequests. map (rs) |
I need to make this program fast because there is approx 70 links per page.
And also is there a way to get response code with grequests?