charliewolf / pynder

:fire: Python client for tinder api
Other
638 stars 142 forks source link

nearby_users() hangs #203

Open MMcintire96 opened 5 years ago

MMcintire96 commented 5 years ago

Upgraded from pynder on pypi to a clone/installed version of this repo and now nearby_users() produces a generator object, but iterating through it causes it to hang.

<generator object Session.nearby_users at 0x10dc14888>
^CTraceback (most recent call last):
  File "/Users/Michael/env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 377, in _make_request
    httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred.

Everything else works fine, can iterate through matches() and connection to api is working.

chickenfresh commented 5 years ago

Does authentication work for you? For me it throws "error": "minimum client version enforced#MINIMUM_VERSION_REQUIRED",

cjekel commented 5 years ago

Upgraded from pynder on pypi to a clone/installed version of this repo and now nearby_users() produces a generator object, but iterating through it causes it to hang.

Perhaps you are iterating to fast? try using something like time.sleep(5) on each user in nearby_users(). I'm not having issues with nearby_users right now.

*Edit 3/5/2019 What are you doing on each user? Are you running user.like() or user.dislike()?

Does authentication work for you? For me it throws "error": "minimum client version enforced#MINIMUM_VERSION_REQUIRED",

Authentication works for me. I'm using the same user agent in this repo. You can check your user agent with

import pynder
print(pynder.constants.USER_AGENT)
MMcintire96 commented 5 years ago

I think the issue was that there were no nearby users on tinder. Tinder app stuck on the 'looking for users' page. Why would the generator not throw a StopIteration error when it cant find any nearby users?

Authentication works for me.

fjleon1980 commented 5 years ago

i may be going too fast because after a few seconds of looping through the nearby users i get banned (real client says check back later for new people)

another issue i have found is that nearby_users() seems to return always the same set of users, i wonder how i can get different users each time i run it or let it run indefinitely