Tinder
Tinder copied to clipboard
phone_auth_token TypeError: 'NoneType' object is not subscriptable
I open the jupyter notebook and add
import phone_auth_token
in the first line, so that I have the following:
import tinder_api
import fb_auth_token
import phone_auth_token
When I type in my phone number like 0049152[...] I get the following error:
C:\Users\Name\Anaconda3\lib\site-packages\urllib3\connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
https://api.gotinder.com/v2/auth/sms/send?auth_type=sms
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-4f4ef5614574> in <module>
----> 1 import phone_auth_token
~\PycharmProjects\Tinder2020\Tinder\phone_auth_token.py in <module>
36
37 phone_number = input("Please enter your phone number under the international format (country code + number): ")
---> 38 log_code = send_otp_code(phone_number)
39 otp_code = input("Please enter the code you've received by sms: ")
40 refresh_token = get_refresh_token(otp_code, phone_number)
~\PycharmProjects\Tinder2020\Tinder\phone_auth_token.py in send_otp_code(phone_number)
13 print(r.url)
14 response = r.json()
---> 15 if(response.get("data")['sms_sent'] == False):
16 return False
17 else:
TypeError: 'NoneType' object is not subscriptable
What is happening here?
@Sammeeey You can take a look at my own library where there aren't such errors like that. I've open-sourced my own library written on Java where you can find all basic requests including authorization and registration via SMS: https://github.com/RMatushkin/tinder-api