1import requests
2
3
4url = 'https://www.facebook.com/favicon.ico'
5r = requests.get(url, allow_redirects=True)
6
7open('facebook.ico', 'wb').write(r.content)
1import urllib2response = urllib2.urlopen('https://wordpress.org/plugins/about/readme.txt')data = response.read()print(data)