Skip to content

Instantly share code, notes, and snippets.

@Gunio
Created October 18, 2011 04:52
Show Gist options
  • Save Gunio/1294634 to your computer and use it in GitHub Desktop.
Save Gunio/1294634 to your computer and use it in GitHub Desktop.
GET using Requests And Authentication
import requests
r = requests.get('https://api.github.com', auth=('YOURUSERNAME', 'PASSWORD'))
print r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment