Skip to content

Instantly share code, notes, and snippets.

@puppis42
Created August 26, 2021 19:50
Show Gist options
  • Save puppis42/d47b8d538dc497e1602cdfae92735e46 to your computer and use it in GitHub Desktop.
Save puppis42/d47b8d538dc497e1602cdfae92735e46 to your computer and use it in GitHub Desktop.
# 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