
import requests
from graphviz import Digraph
import module_commiters
import module_projects


f = open('input.txt')
str = f.read()
f.close()
users = str.split(' ')

'''
users = project_commiters('r1chardj0n3s/parse')
print(users)
'''

dot = Digraph(comment='Collaborations', format='png')

for user in users:
	dot.node(user, user)



for user in users:
	user_repos = module_projects.user_projects(user)
	i = 0
	n = min(len(user_repos), 5)
	while i < n:
		repo = user_repos[i]
		i = i + 1
		dot.node(repo, repo)
		commiters = module_commiters.project_commiters(repo)
		result = list(set(commiters) & set(users))
		for commiter in result:
			dot.edge(commiter, repo)
dot.render('github.gv')

import requests
from graphviz import Digraph
import module_commiters
import module_projects

f = open('input.txt')
str = f.read()
f.close()
users = str.split(' ')

dot = Digraph(comment='Collaborations', format='png')

for user in users:
	dot.node(user, user)

for user in users:
	user_repos = module_projects.user_projects(user)
	for repo in user_repos:
		dot.node(repo, repo)
		commiters = module_commiters.project_commiters(repo)
		result = list(set(commiters) & set(users))
		for commiter in result:
			dot.edge(commiter, repo)
dot.render('github.gv')

Update Main.py (2)