github.py 432 B

123456789101112131415161718192021222324
  1. '''
  2. Module github.py contains a handful of methods
  3. for interacting with Github data.
  4. '''
  5. import requests
  6. import simplejson as json
  7. ########################
  8. # GITHUB API CONSTANTS #
  9. ########################
  10. API_BASE_URL = 'https://api.github.com/'
  11. API_USERS_URL = API_BASE_URL + 'users/DrkSephy'
  12. def getUserData():
  13. req = requests.get(API_USERS_URL)
  14. jsonList = []
  15. jsonList.append(json.loads(req.content))
  16. print jsonList