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

Fail importing from FilmAffinity #271

Open
fergusreiggracia opened this issue Dec 5, 2023 · 1 comment
Open

Fail importing from FilmAffinity #271

fergusreiggracia opened this issue Dec 5, 2023 · 1 comment

Comments

@fergusreiggracia
Copy link

fergusreiggracia commented Dec 5, 2023

Describe the bug
Fail importing from FilmAffinity to IMDB

To Reproduce
docker run -it -v '/mnt/disco/Descargas/imdb/.RatS.cfg':/RatS/RatS/credentials.cfg stegschreck/rats python3 transfer_ratings.py --source FilmAffinity --destination IMDB

Expected behavior
Copy data from FilmAffinity to IMDB

Desktop (please complete the following information):

  • Version: Last docker image
  • Platform OS: Linux
  • Firefox version: --
  • Geckodriver version: --
  • Python version: --
  • PIP version: --
  • Running in a virtualenv?: yes
  • Running in Docker?: yes
  • Executed command: docker run -it -v '/mnt/disco/Descargas/imdb/.RatS.cfg':/RatS/RatS/credentials.cfg stegschreck/rats python3 transfer_ratings.py --source FilmAffinity --destination IMDB

Stacktrace

Error and stacktrace produced by the script in the console.
===== FilmAffinity: performing loginTraceback (most recent call last):
File "transfer_ratings.py", line 227, in
main()
File "transfer_ratings.py", line 79, in main
execute(args)
File "transfer_ratings.py", line 127, in execute
parser = get_parser_from_arg(args.source)(args)
File "/RatS/RatS/filmaffinity/filmaffinity_ratings_parser.py", line 11, in init
super(FilmAffinityRatingsParser, self).init(FilmAffinity(args), args)
File "/RatS/RatS/filmaffinity/filmaffinity_site.py", line 12, in init
super(FilmAffinity, self).init(args)
File "/RatS/RatS/base/base_site.py", line 35, in init
self._init_browser()
File "/RatS/RatS/base/base_site.py", line 68, in _init_browser
self.login()
File "/RatS/RatS/base/base_site.py", line 83, in login
self._insert_login_credentials()
File "/RatS/RatS/base/base_site.py", line 121, in _insert_login_credentials
login_field_user.send_keys(self.USERNAME)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webelement.py", line 479, in send_keys
'value': keys_to_typing(value)})
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: Element is not reachable by keyboard

@StegSchreck
Copy link
Owner

The problem seems to be the bot protection :/
image

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

2 participants