Skip to content

Instantly share code, notes, and snippets.

View smbatyan1729's full-sized avatar

Khachik Smbatyan smbatyan1729

  • Yerevan, Armenia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am smbatyan1729 on github.
  • I am khachik (https://keybase.io/khachik) on keybase.
  • I have a public key ASCgmrY1WOWF64FvyGZy9CSiUZZcRNhFf2Xp2KY4YDT7RAo

To claim this, I am signing this object:

import json
import requests
repos_url = None
with open('myJson.json', 'w') as f:
BASE_API_URL = 'https://api.github.com/'
name = input('Please input github username:')
r = requests.get(BASE_API_URL + 'users/%s' % name)
json.dump(r.json(), f)
with open('myJson.json', 'r') as f:
user_obj = json.load(f)