I got an API key from blockchain.info to bypass the request limiter, but I don't know how to use it and I can't find any relevant info online.
url = "https://blockchain.info/rawblock/" + str(s)
usock = urlopen(url)
data = usock.read()
where variable s is the block height.
As the python blockchain.info API states:
https://blockchain.info/rawaddr/$bitcoin_address Address can be base58 or hash160 Optional limit parameter to show n transactions e.g. &limit=50 (Default: 50, Max: 50)
BUT it also states:
Request limits and API keys In order to prevent abuse some API methods require an API key approved with some basic contact information and a description of its intended use. Please request an API key here.
The same API key can be used to bypass the request limiter.
However, I don't know how to incorporate it in the function.
Any advice is appreciated!