-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
40 lines (28 loc) · 693 Bytes
/
test.py
File metadata and controls
40 lines (28 loc) · 693 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
from github import Github
from drawer import drawObsidian
import time
g = Github("INSERT YOUR TOKEN HERE")
initialUser = "INSERT SOME GITHUB USERNAME HERE"
users = [initialUser]
comer = initialUser
d = {}
counter = 0
done = False
while not done:
if counter == 0:
followers = g.get_user(users[counter]).get_followers()
else:
followers = users[counter].get_followers()
comer = users[counter].login
for i in followers:
users.append(i)
tl = []
for i in followers:
tl.append(i.login)
d[comer] = tl
followers = []
counter += 1
print(f"{counter}/3000")
if counter >= 50:
done = True
drawObsidian(d)