在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:khuyentran1401/top-github-scraper开源软件地址:https://github.com/khuyentran1401/top-github-scraper开源编程语言:HTML 80.6%开源软件介绍:Top Github ScraperScrape top Github repositories and users based on keywords. I used this tool to analyze the top 1k machine learning users and create an interactive map to search for users based on their location. SetupInstallation pip install top-github-scraper Add Credentials To make sure you can scrape many repositories and users, add your GitHub's credentials to touch .env Add your username and token to GITHUB_USERNAME=yourusername
GITHUB_TOKEN=yourtoken UsageView full documentation here. Get Top Github Repositories' URLsfrom top_github_scraper import get_top_repo_urls
get_top_repo_urls(keyword="machine learning", stop_page=10) Output at [
"/josephmisiti/awesome-machine-learning",
"/wepe/MachineLearning",
"/udacity/machine-learning",
"/Jack-Cherish/Machine-Learning",
"/ZuzooVn/machine-learning-for-software-engineers",
"/rasbt/python-machine-learning-book",
"/lawlite19/MachineLearning_Python",
"/lazyprogrammer/machine_learning_examples",
"/trekhleb/homemade-machine-learning",
"/ujjwalkarn/Machine-Learning-Tutorials"
] Get Top Github Repositories' Informationfrom top_github_scraper import get_top_repos
get_top_repos("machine learning", stop_page=10) Output for 1 repository at {
"stargazers_count": 48620,
"forks_count": 12155,
"contributors": {
"login": [
"josephmisiti",
"josephmmisiti",
"hslatman",
"0asa",
"ajkl",
"ipcenas",
"cogmission",
"spekulatius",
"basickarl",
"NathanEpstein"
],
"url": [
"https://api.github.com/users/josephmisiti",
"https://api.github.com/users/josephmmisiti",
"https://api.github.com/users/hslatman",
"https://api.github.com/users/0asa",
"https://api.github.com/users/ajkl",
"https://api.github.com/users/ipcenas",
"https://api.github.com/users/cogmission",
"https://api.github.com/users/spekulatius",
"https://api.github.com/users/basickarl",
"https://api.github.com/users/NathanEpstein"
],
"contributions": [
671,
105,
21,
12,
11,
9,
8,
7,
7,
7
]
}
} Get Top Github Contributors' Profilesfrom top_github_scraper import get_top_contributors
get_top_contributors("machine learning", stop_page=10) Output at
Get Top Github Users' Profilesfrom top_github_scraper import get_top_users
get_top_users("machine learning", stop_page=10) Output at
全部评论
专题导读
上一篇:Sponsor @khuyentran1401 on GitHub Sponsors · GitHub发布时间:2022-06-11下一篇:useful-forks/useful-forks.github.io: Improving GitHub's Forks list discovera ...发布时间:2022-06-11热门推荐
热门话题
阅读排行榜
|
请发表评论