-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgithub.py
28 lines (25 loc) · 1.18 KB
/
github.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from justgood import imjustgood
media = imjustgood("YOUR_APIKEY_HERE")
userId = "goodop" # example github id
data = media.github(query)
# Get attributes
result = "GitHub Profile"
result += "\nID : {}".format(data["result"]["id"])
result += "\nType : {}".format(data["result"]["type"])
result += "\nUsername : {}".format(data["result"]["username"])
result += "\nFullname : {}".format(data["result"]["fullname"])
result += "\nBiography : {}".format(data["result"]["biography"])
result += "\nBlog : {}".format(data["result"]["blog"])
result += "\nEmail : {}".format(data["result"]["email"])
result += "\nCompany : {}".format(data["result"]["company"])
result += "\nCreated : {}".format(data["result"]["created_at"])
result += "\nUpdated : {}".format(data["result"]["updated_at"])
result += "\nLocation : {}".format(data["result"]["location"])
result += "\nRepositories : {}".format(data["result"]["repositories"])
result += "\nFollower : {}".format(data["result"]["follower"])
result += "\nFollowing : {}".format(data["result"]["following"])
result += "\nProfile : {}".format(data["result"]["page"])
result += "\nAvatar : {}".format(data["result"]["avatar"])
print(result)
# Get JSON results
print(data)