-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
47 lines (32 loc) · 974 Bytes
/
main.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import sys
def organizationCrawlerMain():
sys.path.append('./organizationCrawler')
import orgCrawlerMain
orgCrawlerMain.main()
def repositoryMain(repoNames):
sys.path.append('./RepositoryCrawler')
import repoCrawlerMain
repoCrawlerMain.main(repoNames)
def trendingMain():
sys.path.append('./Trending')
import trendingRepos
trendingRepoNames = trendingRepos.main()
repoChoice = input("Run repository crawler? (y/n) ")
if repoChoice=='y':
repositoryMain(trendingRepoNames)
def searchMain():
sys.path.append('./Search')
import getSearchResultRepository
getSearchResultRepository.main()
def main():
orgChoice = input("Run the organization crawler code? (y/n) ")
if orgChoice=='y':
organizationCrawlerMain()
trendingChoice = input("Run the trending projects crawler code? (y/n) ")
if trendingChoice=='y':
trendingMain()
searchChoice = input("Search GitHub? (y/n) ")
if searchChoice=='y':
searchMain()
if __name__ == '__main__':
main()