I am trying to resolve a DOI like this:
import requests
url = 'https://dx.doi.org/10.3847/1538-4357/aafd31'
r1 = requests.get(url)
actual_url = r1.url
But the requests.get
call actually takes of the order of 10s of seconds up to 5 minutes (it varies)! I tried stream=True
or verify=False
but that does not really help.