Open sgkim126 opened 8 years ago
이거 제가 시도해봅니다.
repo에서 수집할 정보가 뭐뭐 있을까?
일단 https://api.github.com/repos/thefron/SNA_Proj/languages 를 통해서 language 가지고 와야할 것 같고 https://api.github.com/repos/thefron/SNA_Proj/forks 포크한 사람 id https://api.github.com/repos/thefron/SNA_Proj/stargazers star한 사람 id https://api.github.com/repos/thefron/SNA_Proj/subscribers subscribe한 사람 id 가지고 오면 되나?
가능하면 https://api.github.com/repos/thefron/SNA_Proj/contributors 이것도 가지고 오고 싶은데 이건 너무 많으려나
위의 것들 전부 한 페이지에 30명씩만 가지고 오니까, https://api.github.com/repos/thefron/SNA_Proj/forks?page=2 이런 식으로 여러 번 호출해야 할듯.
일단 돌리면서 테스트하고 있는데, 리포지터리 뭘 긁어올지 후보를 줄이고 다시 돌려야 할 거 같아요. 그리고 contributors는 리포지터리에 따라 제대로 결과가 안 나오기도 하네요. 또 stargazers는 너무 쓸데없이 많은 프로젝트들이 있어서 빼버리고 싶어요.