Witness-senpai / fakku-downloader

Script that allows download manga directly from fakku.net.
MIT License
53 stars 12 forks source link

Cookies #21

Open Enfreakinrique opened 3 years ago

Enfreakinrique commented 3 years ago

Hello,

My cookies expired so I was trying to create a new file, but I got this:

File` "C:\Users\GECKO\Downloads\fakku-downloader\main.py", line 131, in <module>
    main()
  File "C:\Users\GECKO\Downloads\fakku-downloader\main.py", line 120, in main
    loader.init_browser(headless=False)
  File "C:\Users\GECKO\Downloads\fakku-downloader\downloader.py", line 158, in init_browser
    self.__auth()
  File "C:\Users\GECKO\Downloads\fakku-downloader\downloader.py", line 190, in __auth
    self.browser.find_element_by_class_name('js-submit').click()
  File "C:\Users\GECKO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 564, in find_element_by_class_name
    return self.find_element(by=By.CLASS_NAME, value=name)
  File "C:\Users\GECKO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "C:\Users\GECKO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\GECKO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".js-submit"}
  (Session info: chrome=91.0.4472.124)

I saw another ticket similar to this and changed Line 190 to js-submit2, but then I got this message:

File "C:\Users\GECKO\Downloads\fakku-downloader\main.py", line 131, in <module>
    main()
  File "C:\Users\GECKO\Downloads\fakku-downloader\main.py", line 120, in main
    loader.init_browser(headless=False)
  File "C:\Users\GECKO\Downloads\fakku-downloader\downloader.py", line 158, in init_browser
    self.__auth()
  File "C:\Users\GECKO\Downloads\fakku-downloader\downloader.py", line 190, in __auth
    self.browser.find_element_by_class_name('js-submit2').click()
  File "C:\Users\GECKO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click
    self._execute(Command.CLICK_ELEMENT)
  File "C:\Users\GECKO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "C:\Users\GECKO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\GECKO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
  (Session info: chrome=91.0.4472.124)

TY!

Xitherun commented 3 years ago

The element already had its name changed since that solution was last posted. Change it again from "js-submit2" to "js-submit-login".