Created
August 26, 2021 19:50
-
-
Save puppis42/d47b8d538dc497e1602cdfae92735e46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.gutenberg.org/files/10/10-0.txt | |
import requests | |
headers = { | |
'User-Agent': 'My User Agent 1.0' | |
} | |
r = requests.get("http://www.gutenberg.org/files/10/10-0.txt", headers=headers) | |
print(r.content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment