TinderBotz icon indicating copy to clipboard operation
TinderBotz copied to clipboard

Chrome frezzes when finishing the first swipe

Open rruales6 opened this issue 2 years ago • 1 comments

The First Swipe works fine and when going to make the second one it freezes.

Steps to reproduce the behavior:

  1. I followed all steps on readme.md
  2. The Browser opens and makes de 1st swipe but freezes after that

console output

     _____ _           _           _           _        
    |_   _(_)_ __   __| | ___ _ __| |__   ___ | |_ ____ 
      | | | | '_ \ / _` |/ _ \ '__| '_ \ / _ \| __|_  / 
      | | | | | | | (_| |  __/ |  | |_) | (_) | |_ / /  
      |_| |_|_| |_|\__,_|\___|_|  |_.__/ \___/ \__/___| 
    ----------------------------------------------------

Started session: 2021-10-22 16:17:28

c:\Users\ricardo.ruales\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py:502: UserWarnin _____ _ _ _ _
|_ ()_ __ | | ___ _ | | ___ | | ____ | | | | ' \ / ` |/ _ \ '__| ' \ / _ | | / | | | | | | | (| | __/ | | |) | () | | / /
|| ||| ||_,|_
|| |./ _/ _/_| ---------------------------------------------------- Started session: 2021-10-22 16:20:18

c:\Users\ricardo.ruales\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py:502: UserWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead warnings.warn("find_elements_by_* commands are deprecated. Please use find_elements() instead") ng: find_element_by_* commands are deprecated. Please use find_element() instead warnings.warn("find_element_by_* commands are deprecated. Please use find_element() instead") Liking profiles started. c:\Users\ricardo.ruales\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py:483: UserWarning: find_element_by_* commands are deprecated. Please use find_element() instead 1/100 liked

     _____ _           _           _           _        
    |_   _(_)_ __   __| | ___ _ __| |__   ___ | |_ ____ 
      | | | | '_ \ / _` |/ _ \ '__| '_ \ / _ \| __|_  / 
      | | | | | | | (_| |  __/ |  | |_) | (_) | |_ / /  
      |_| |_|_| |_|\__,_|\___|_|  |_.__/ \___/ \__/___| 
    ----------------------------------------------------

Started session: 2021-10-22 16:48:51

c:\Users\ricardo.ruales\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py:502: UserWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead warnings.warn("find_elements_by_* commands are deprecated. Please use find_elements() instead") c:\Users\ricardo.ruales\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webelement.py:392: UserWarning: find_element_by_* commands are deprecated. Please use find_element() instead warnings.warn("find_element_by_* commands are deprecated. Please use find_element() instead")

Liking profiles started. c:\Users\ricardo.ruales\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py:483: UserWarning: find_element_by_* commands are deprecated. Please use find_element() instead warnings.warn("find_element_by_* commands are deprecated. Please use find_element() instead") 1/100 liked 2/100 liked

Desktop (please complete the following information):

  • chrome version 95 on windows 10 -python version 3.7

rruales6 avatar Oct 22 '21 21:10 rruales6

I'll take a look at it for the next update.

What comes to mind is the actionchains that swipes the profilecard that could be causing some kind of freeze. A temporary fix could be forcing to open the profile so it can click the like button instead of drag and dropping the profile.

So instead of:

session.like(amount=100)

Try something like this:

for _ in range(100):
    _ = session.get_geomatch()
    session.like()

frederikme avatar Oct 22 '21 22:10 frederikme