Passing an array of links
Last updated 1 year ago
You can pass an array/iterator of links to the request methods to send them concurrently:
>>> hrequests.get(['https://google.com/', 'https://github.com/']) (<Response [200]>, <Response [200]>)
This wraps around .
This also works with nohup:
nohup
>>> resps = hrequests.get(['https://google.com/', 'https://github.com/'], nohup=True) >>> resps (<LazyResponse[Pending]>, <LazyResponse[Pending]>) >>> # Sometime later... >>> resps (<Response [200]>, <Response [200]>)
hrequests.map