I'm trying to use urllib to get content from this url:"https://blockexplorer.com/block-index/0" . But when the browser load this link, it will be redirect to another link "https://blockexplorer.com/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f".
Here is my code:
import urllib
link = "https://blockexplorer.com/block-index/0"
f = urllib.urlopen(link)
myfile = f.read()
print myfile
But I get the message "Cannot GET /block-index/0". So could I get the content of page after parsed with block index as above.
Please help me solve this issue.
Thank a lot.