msuozzo / Lector

An API for your Kindle data
MIT License
309 stars 40 forks source link

[BUG] selenium.common.exceptions.TimeoutException #5

Open Cyber5imon opened 4 years ago

Cyber5imon commented 4 years ago

I know this hasn't been updated in a while, but is this still working for everyone? I receive a timeout error as follows:

/usr/lib/python2.7/dist-packages/selenium/webdriver/phantomjs/webdriver.py:49: UserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead
  warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless '
Traceback (most recent call last):
  File "./book.py", line 5, in <module>
    api = lector.KindleCloudReaderAPI('email@address.com', 'password')
  File "/home/simon/git/Lector/lector/reader.py", line 326, in __init__
    self._browser = _KindleCloudReaderBrowser(username, password)
  File "/home/simon/git/Lector/lector/reader.py", line 182, in __init__
    self._init_browser()
  File "/home/simon/git/Lector/lector/reader.py", line 192, in _init_browser
    self._to_reader_home()
  File "/home/simon/git/Lector/lector/reader.py", line 218, in _to_reader_home
    self._wait(5).until(login_or_reader_loaded)
  File "/usr/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 80, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
HacDan commented 4 years ago

There was some discussion a few years ago saying that URL was no longer valid and seems to be the case again. Not a lot of activity on this project though.

I'm debating on forking it and fixing it, although I wonder if it would be easier to just start over.

Cyber5imon commented 4 years ago

I did a little bit of digging to see how much change there has been to the source code for the pages being scrapped. It still looks pretty accurate. Enough to not through everything away and start from scratch, anyway...

I this isn't being maintained any longer, I will probably fork it and take a stab at bringing it up to date. It's pretty helpful to have an API type interface into the Kindle world.

matthefish commented 3 years ago

Someone please fork it -- amazon is so annoying with how protective they are of kindle data

msuozzo commented 3 years ago

Hey all,

Apologies for the radio silence. I'm circling back to this project and will provide a fix in the near future.

Thanks for the interest and I look forward to getting everyone back on track.

msuozzo commented 3 years ago

Quick update: The Cloud Reader site no longer exports the symbols necessary to use this approach to get reading progress. I'm still playing around with some options but, unfortunately, it's not going to be a simple fix.

msuozzo commented 3 years ago

Quicker update: I've got a proof-of-concept working. Working on getting the PR ready.