Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github API rate limit exceeded error #19

Open
cubicbyte opened this issue Jul 28, 2023 · 0 comments
Open

Github API rate limit exceeded error #19

cubicbyte opened this issue Jul 28, 2023 · 0 comments

Comments

@cubicbyte
Copy link

When I run python script with webdriverdownloader too much, this error starts to appear:

Traceback (most recent call last):
  File "D:\source\projects\reddit-account-generator\create_accounts.py", line 39, in <module>
    install_driver()
  File "D:\source\projects\reddit-account-generator\reddit_account_generator\__init__.py", line 13, in install_driver
    webdriverdownloader.GeckoDriverDownloader().download_and_install()
  File "D:\Programs\Python3.11.0\Lib\site-packages\webdriverdownloader\webdriverdownloader.py", line 174, in download_and_install
    filename_with_path = self.download(version,
                         ^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Python3.11.0\Lib\site-packages\webdriverdownloader\webdriverdownloader.py", line 129, in download
    download_url = self.get_download_url(version, os_name=os_name, bitness=bitness)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Python3.11.0\Lib\site-packages\webdriverdownloader\webdriverdownloader.py", line 318, in get_download_url
    raise RuntimeError(info_message)
RuntimeError: Error, unable to find a download for os: win

Looking into the code I realized that your library makes a request to the page below each time, where the following error appears:

изображение

I suggest a solution: cache requests or add some proper error for this scenario, for example "You have exceeded the request limit, try again later"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant