This is a workshop for students to learn how to use GitHub API and more specific learn the following concepts.
- HTTP API -> Searching repositories
- Pagination Logic -> Fetching more repositories
- Repositories Details -> Fetching language specific information
- GraphQL -> Searching repositories and fetch details at once
- GitHUb API Wrappers -> Searching repositories using PyGithub
- Parsing Commits -> Merging authors using local and remote information
git clone https://github.com/vharatian/GithubAPIWorkshop.git
cd GithubAPIWorkshop
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Copy the config-template.py file to the config.py file.
cp config-template.py config.py
Obtain a valid github token and place it into the config.py file. Look at the GitHub Documentation for more information.
To complete the GithubLogin task you need to clone the VueJS core repository into the repositories
folder.
mkdir repositories
git clone https://github.com/vuejs/core.git repositories/core
The results of each task should be placed as a JSON file in a folder named results
in the directory you have launched the execution.