Skip to content

SecurityDiscovery/gogs_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an image

Possible improvements

  • Multithreading (requests, git cloning)
  • Clearer command line options (e.g., simple/json output, verbosity level)
  • Tidy code

Installation

  • Python3 needed
  • git clone https://github.com/SecurityDiscovery/gogs_downloader.git
  • cd gogs_downloader
  • python3 -m pip install -r requirements.txt

Usage

usage: gogs_downloader.py [-h] -t TARGET -o OUTPUT [-s] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -t TARGET, --target TARGET
                        The target. E.g. https://example.com/gogs/ or https://gogs.example.com/
  -o OUTPUT, --output OUTPUT
                        The destination directory to clone the repositories to
  -s, --s               Only show list of repos (not git clone)
  -v, --v               Verbose?

Download all publicly accessible repositories

python3 gogs_downloader.py -t http://target:3000/ -o out

List all publicly accessible repositories

python3 gogs_downloader.py -t http://target:3000/ -o out -s

The output directory is currently needed but won't be used with "-s".

Screenshots

This is an image This is an image

About

Downloading or fetching public repositories from a Gogs.io instance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages