Skip to content

Instantly share code, notes, and snippets.

@jmorenoamor
Created January 4, 2013 10:51
Show Gist options
  • Save jmorenoamor/4451615 to your computer and use it in GitHub Desktop.
Save jmorenoamor/4451615 to your computer and use it in GitHub Desktop.
Download a remote resource using python requests library
with open("downloaded_file.html", 'w') as file:
file.write(requests.get('http://www.example.com').content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment