/svg_repo_dl

Download Pack of SVG REPO on your CLI

Primary LanguagePythonMIT LicenseMIT

logo

SVG_REPO Pack Downloader A small personal tool that will allow you to download an icon pack on SVGREPO with the CLI.

made-with-python last_commit MIT license


Requirement :

  • Python 3
  • BeautifulSoup
  • Progress

Installation

Follow this step:

Clone the repo

git clone git@github.com:AllanCerveaux/svg_repo_dl.git

Go in folder

cd svg_repo_dl

And run install.sh

sh install.sh

or alternatively:

PYTHONPATH=$(pwd) python -m svgrepodl --help

Usage :

$ svgrepodl [URL] --path[-p]
$ svgrepodl --help # Show all commands
$ svgrepodl https://www.svgrepo.com/collection/role-playing-game/ # Run downloader

By default, the program saves the icons in the current directory.

Enjoy !

License

The MIT License (MIT) 2020 - Callan, 2023 - Drzraf. Please have a look at the License for more details.

Metadata

Concurrency is not supported but it's possible to rely on svgrepodl for listing URL and actually download resources using another tool like aria2c

The same applies to metadata: Once SVG files are retrieved, assuming consistent <id>-<slug>.svg names, downloading is a matter of: $ find . -name '*.svg' -printf '%f\n' | sed -r 's!([0-9]+)-(.*)\.svg!https://api.svgrepo.com/svg/\1/\2\n\tout=\1-\2.json!' | aria2c --auto-file-renaming=false --allow-overwrite=false -i - -j 4