allancerveaux / svg_repo_dl Goto Github PK
View Code? Open in Web Editor NEWDownload Pack of SVG REPO on your CLI
License: MIT License
Download Pack of SVG REPO on your CLI
License: MIT License
Love this, very helpful!
I added the suggestion below to the code and it worked on Windows (along with pip install requests
). I can make a PR if you'd like!
https://stackoverflow.com/a/58727916
I see the discussions still talk about the old way of setting up geckodriver by downloading the binary and configuring the path manually.
This can be done automatically using
webdriver-manager
pip install webdriver-manager
Now the above code in the question will work simply with the below change,
from selenium import webdriver from webdriver_manager.firefox import GeckoDriverManager driver = webdriver.Firefox(executable_path=GeckoDriverManager().install())
I'm currently trying to run the downloader from within a docker container based on the official python:3-alim image
At first, it complained about a missing module requests
After pip install requests
it now stops with
INFO: ๐ฃ Download will start for dazzle-line-icons pack !
Traceback (most recent call last):
File "/usr/local/bin/svgrepodl", line 33, in <module>
sys.exit(load_entry_point('svgrepodl', 'console_scripts', 'svgrepodl')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/work/svg_repo_dl/svgrepodl/__main__.py", line 6, in main
cli()
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/work/svg_repo_dl/svgrepodl/commands.py", line 38, in cli
downloader(url, dest)
File "/work/svg_repo_dl/svgrepodl/utils.py", line 10, in downloader
driver = browserConfiguration(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/work/svg_repo_dl/svgrepodl/utils.py", line 30, in browserConfiguration
return webdriver.Firefox(firefox_profile=profile, options=options, service_log_path=os.path.devnull)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WebDriver.__init__() got an unexpected keyword argument 'firefox_profile'
I followed the install instructions but svgrepodl won't run, it just says svgrepodl doesn't exist.
Python 3.10.6
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
On linux mint
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.