Code Monkey home page Code Monkey logo

svg_repo_dl's Introduction

Hi there ๐Ÿ‘‹

svg_repo_dl's People

Contributors

allancerveaux avatar drzraf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rozek drzraf

svg_repo_dl's Issues

Followed instructions but svgrepodl wont run

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

I used this to great success, though I think one tweak could make it portable to Windows machines

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())

does not run in Docker container

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'

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.