Giter Site home page Giter Site logo

svg_repo_dl's Introduction

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 [email protected]: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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.