sash-a / download-anonymous-github

Download an anonymized repository from https://anonymous.4open.science/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download Anonymous GitHub

Want to download an anonymized repository from https://anonymous.4open.science/?

  1. Clone this repository and install the dependency
git clone https://github.com/agb94/download-anonymous-github
cd download-anonymous-github
pip install requests
  1. Download an anonymized repository
# To download https://anonymous.4open.science/r/<repo>
python download.py <repo> --savedir <dir>

If you don't provide --savedir option, it is automatically set to <repo>.

For example,

python download.py 840c8c57-3c32-451e-bf12-0e20be300389 --savedir sample

this command will clone the repository https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389 to sample/.

If you want to only download python files and the readme so that large files are ignored use the --file-types option with the file types that you want, in this case .md and .py

python download.py 840c8c57-3c32-451e-bf12-0e20be300389 --savedir sample --file-types .md .py

About

Download an anonymized repository from https://anonymous.4open.science/


Languages

Language:Python 100.0%