This project is an auto spider that collects a user's followers and followings on GitHub using Python. The collected data is saved as JSON files.
- Clone the repository:
git clone https://github.com/githubnext/workspace-blank.git
- Navigate to the project directory:
cd workspace-blank
- Install the required dependencies:
pip install -r requirements.txt
- Run the script:
python github_spider.py <github_username> <layers>
- The followers and followings data will be saved as
followers.json
andfollowings.json
respectively in the project directory.
To recursively obtain a person's follower list and following list up to 2 layers, run the following command:
python github_spider.py octocat 2
This is a project to try using copilot-workspace.