StegSchreck / RatS

Movie Ratings Synchronization with Python
GNU Affero General Public License v3.0
271 stars 31 forks source link

Fail importing from FilmAffinity #271

Open fergusreiggracia opened 11 months ago

fergusreiggracia commented 11 months ago

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):

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 commented 10 months ago

The problem seems to be the bot protection :/ image