GithubHelp home page GithubHelp logo

Comments (5)

fabrikant avatar fabrikant commented on June 27, 2024 1

Привет! Прошу прощения, что не сразу ответил. Уезжал и был без связи несколько дней.
В общем разобрался. Действительно все работает! Оказалось, что нужно открыть firefox и прощелкать приветствие первого запуска. Я этим браузером не пользуюсь и он у меня в системе ни разу не открывался...
В общем все отлично! Работает замечательно! Спасибо большое за качалку!

from audioknigi-club-downloader-app.

deathtracktor avatar deathtracktor commented on June 27, 2024

Привет!

"У меня всё работает", Линукса нету под рукой чтобы проверить :)

Попробуй закомментировать строку 63 и посмотреть, открывается ли браузер вообще. Можно еще обновить geckodriver и сам Firefox до последней версии.

В моем логе отсутствуют сообщения Exiting due to channel error. - на эту тему Гугл подсказывает несколько обсуждений.

Напиши что получится, будем дальше разбираться.

ps. Спасибо за пользование этим поделием!

from audioknigi-club-downloader-app.

fabrikant avatar fabrikant commented on June 27, 2024

И все-таки есть проблема. Некоторые книги качаются нормально. А некоторые нет.
Например без проблем качается: https://akniga.org/poedinok-spektakl
А вот эта никак: https://akniga.org/kuprin-poedinok
После сообщения: Fetching book metadata, please stand by...
Висит, грузит на 100% процессор, потихоньку выжирает всю доступную память, а когда память кончается вываливается:

Traceback (most recent call last):
File "/home/artem/audioknigi-club-downloader-app/app.py", line 173, in
cli()
File "/home/artem/audioknigi-club-downloader-app/.venv/lib/python3.10/site-packages/click/core.py", line 1137, in call
return self.main(*args, **kwargs)
File "/home/artem/audioknigi-club-downloader-app/.venv/lib/python3.10/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/home/artem/audioknigi-club-downloader-app/.venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/artem/audioknigi-club-downloader-app/.venv/lib/python3.10/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/home/artem/audioknigi-club-downloader-app/app.py", line 160, in cli
playlist_url = get_signed_playlist_url(audio_book_url)
File "/home/artem/audioknigi-club-downloader-app/app.py", line 50, in get_signed_playlist_url
with open_browser(url) as browser:
File "/usr/lib/python3.10/contextlib.py", line 135, in enter
return next(self.gen)
File "/home/artem/audioknigi-club-downloader-app/app.py", line 66, in open_browser
browser.get(url)
File "/home/artem/audioknigi-club-downloader-app/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 449, in get
self.execute(Command.GET, {"url": url})
File "/home/artem/audioknigi-club-downloader-app/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/home/artem/audioknigi-club-downloader-app/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Failed to decode response from marionette

Ощущение, что в какую-то бесконечную рекурсию попадает...

from audioknigi-club-downloader-app.

deathtracktor avatar deathtracktor commented on June 27, 2024

У меня работают оба URLа, запуск браузера длится секунд 15 на довольно старом лэптопе ¯\_(ツ)_/¯

StackOverflow намекает на возможную нехватку памяти, и еще пару дополнительных вариантов.

from audioknigi-club-downloader-app.

fabrikant avatar fabrikant commented on June 27, 2024

Памяти 16Гб + 8Гб своп
Решил попробовать под виндой. Винда под virtualbox. Установил всё. Запустил:

(.venv) C:\audioknigi-club-downloader-app-master>python app.py https://akniga.org/kuprin-poedinok
Fetching book metadata, please stand by...
Traceback (most recent call last):
File "C:\audioknigi-club-downloader-app-master\app.py", line 173, in
cli()
File "C:\audioknigi-club-downloader-app-master.venv\Lib\site-packages\click\core.py", line 1137, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\audioknigi-club-downloader-app-master.venv\Lib\site-packages\click\core.py", line 1062, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\audioknigi-club-downloader-app-master.venv\Lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\audioknigi-club-downloader-app-master.venv\Lib\site-packages\click\core.py", line 763, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\audioknigi-club-downloader-app-master\app.py", line 160, in cli
playlist_url = get_signed_playlist_url(audio_book_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\audioknigi-club-downloader-app-master\app.py", line 50, in get_signed_playlist_url
with open_browser(url) as browser:
File "C:\Users\artem\AppData\Local\Programs\Python\Python311\Lib\contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\audioknigi-club-downloader-app-master\app.py", line 66, in open_browser
browser.get(url)
File "C:\audioknigi-club-downloader-app-master.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 449, in get
self.execute(Command.GET, {"url": url})
File "C:\audioknigi-club-downloader-app-master.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "C:\audioknigi-club-downloader-app-master.venv\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: Navigation timed out after 300000 ms
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:187:5
TimeoutError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:674:5
bail@chrome://remote/content/marionette/sync.sys.mjs:213:19

НО! Тут же запускаю из под убунты. И пошла загрузка!!!
(.venv) artem@lenovo:~/audioknigi-club-downloader-app$ python app.py https://akniga.org/kuprin-poedinok
Fetching book metadata, please stand by...
Downloading segment 1003/1413 [29:20]

Под убунтой НИЧЕГО не делал/не менял с прошлого раза.
Я не знаю как это работает и от чего зависит... Может надо браузер запускать предварительно или наоборот не запускать? Буду наблюдать...

from audioknigi-club-downloader-app.

Related Issues (3)

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.