Closed saroar closed 3 years ago
Hi @saroar,
I believe f-strings are supported since python 3.6 or later. Upgrading your version of python should do the trick.
Greetings,
Fred
python -V Python 2.7.16
python3 -V Python 3.9.5
can i run on firfox ?
Also, we cant run without proxy? sorry python3 working fine thanks
You definitely can run it without proxy. (Per default it doesn't use a proxy) Simply not passing the parameter proxy in session will create a session without proxy.
The issue here is your python version which is not compatible and thus crashes at the first possible point where there is a syntax error.
Firefox is not supported at the moment. But I'm glad it works now. If you have any further questions, feel free to ask :)
Slider of distance will be adjusted...
Traceback (most recent call last):
File "/Users/alif/Developer/Swift/Tinder/TinderBotz-master/quickstart.py", line 50, in
how i can do end less like without crash i am using quickstart aslo can we continue with login again becz every time crash it start again i am using phone number login after 4 times i stop getting SMS
how to fixed this issue ?
@frederikme what wrong with this code it consoles show me all link as I set it but when I see 2/3 like and dislike also 2/3 so console show me false logs here is my code
'''
Created by Frederikme (TeetiFM)
'''
from tinderbotz.session import Session
from tinderbotz.helpers.constants_helper import *
if __name__ == "__main__":
# creates instance of session
session = Session()
# Or if you want to use a proxy
# AUTHORISED BY IP -> "HOST:PORT"
# AUTHORISED BY USERNAME, PASSWORD -> "username:password@HOST:PORT"
# session = Session(proxy="5.235.187.58:999")
#
# # set location (Don't need to be logged in for this)
# session.set_custom_location(latitude=50.879829, longitude=4.700540)
#
# # replace this with your own email and password!
# email = "example@gmail.com"
# password = "password123"
# login using your google account with a verified email!
# session.login_using_google(email, password)
# Alternatively you can login using facebook with a connected profile!
# session.login_using_facebook(email, password)
# Alternatively, you can also use your phone number to login
'''
- country is needed to get the right prefix, in my case +32
- phone_number is everything after the prefix (+32)
NOTE: this is not my phone number :)
'''
country = ""
phone_number = ""
session.login_using_sms(country, phone_number)
# spam likes, dislikes and superlikes
# to avoid being banned:
# - it's best to apply a randomness in your liking by sometimes disliking.
# - some sleeping between two actions is recommended
# by default the amount is 1, ratio 100% and sleep 1 second
session.like(amount=10000, ratio="72.5%", sleep=1)
# session.dislike(amount=1)
# session.superlike(amount=1)
# adjust allowed distance for geomatches
# Note: PARAMETER IS IN KILOMETERS!
# session.set_distance_range(km=150)
# set range of prefered age
# session.set_age_range(18, 28)
# set interested in gender(s) -> options are: WOMEN, MEN, EVERYONE
# session.set_sexuality(Sexuality.WOMEN)
# Allow profiles from all over the world to appear
# session.set_global(False)
# Getting matches takes a while, so recommended you load as much as possible from local storage
# get new matches, with whom you haven't interacted yet
# Let's load the first 10 new matches to interact with later on.
# quickload on false will make sure ALL images are stored, but this might take a lot more time
# new_matches = session.get_new_matches(amount=10, quickload=False)
# get already interacted with matches (matches with whom you've chatted already)
messaged_matches = session.get_messaged_matches()
# you can store the data and images of these matches now locally in data/matches
# For now let's just store the messaged_matches
for match in messaged_matches:
session.store_local(match)
# Pick up line with their personal name so it doesn't look spammy
pickup_line = " {}! Вы, случайно, не инопланетянка? На Земле такой красавицы я до сих пор не встречал."
# loop through my new matches and send them the first message of the conversation
for match in new_matches:
# store name and chatid in variables so we can use it more simply later on
name = match.get_name()
id = match.get_chat_id()
print(name, id)
# Format the match her/his name in your pickup line for a more personal approach.
message = pickup_line.format(name)
# send pick up line with their name in it to all my matches
session.send_message(chatid=id, message=message)
# send a funny gif
#session.send_gif(chatid=id, gifname="")
# send a funny song
##session.send_song(chatid=id, songname="")
# send instagram or other socials like facebook, phonenumber and snapchat
#session.send_socials(chatid=id, media=Socials.INSTAGRAM, value="telegram: iamdev2")
# you can also unmatch
#session.unmatch(chatid=id)
# let's scrape some geomatches now
# for _ in range(5):
# get profile data (name, age, bio, images, ...)
# geomatch = session.get_geomatch(quickload=False)
# store this data locally as json with reference to their respective (locally stored) images
# session.store_local(geomatch)
# dislike the profile, so it will show us the next geomatch (since we got infinite amount of dislikes anyway)
# session.dislike()
I'm not really sure what you mean, could you provide a screenshot of the console and webpage?
Slider of distance will be adjusted... Traceback (most recent call last): File "/Users/alif/Developer/Swift/Tinder/TinderBotz-master/quickstart.py", line 50, in session.set_distance_range(km=150) File "/Users/alif/Developer/Swift/Tinder/TinderBotz-master/tinderbotz/session.py", line 134, in set_distance_range helper.set_distance_range(km) File "/Users/alif/Developer/Swift/Tinder/TinderBotz-master/tinderbotz/helpers/preferences_helper.py", line 51, in set_distance_range current_percentage = float(link.get_attribute('style').split(' ')[1].split('%')[0]) UnboundLocalError: local variable 'link' referenced before assignment
Same!
UnboundLocalError: local variable 'link' referenced before assignment
I'm not really sure what you mean, could you provide a screenshot of the console and webpage?
Started session: 2023-05-26 17:57:40
Liking profiles started. 1/10 liked, sleep: 0.5769897656039428 2/10 liked, sleep: 1.6357754706471417 3/10 liked, sleep: 1.5941745883530711 4/10 liked, sleep: 1.7539235168872258 5/10 liked, sleep: 2.049737379457638 6/10 liked, sleep: 1.245649859378632 7/10 liked, sleep: 1.2885871107042868 8/10 liked, sleep: 0.9402893475713244 9/10 liked, sleep: 1.632484289155079 10/10 liked, sleep: 1.4845718715168779 You've liked 10 profiles during this session. You've disliked 4 profiles during this session. You've liked 10 profiles during this session. You've disliked 5 profiles during this session. You've superliked 1 profiles during this session. You've liked 10 profiles during this session. You've disliked 5 profiles during this session.
Slider of distance will be adjusted...
Traceback (most recent call last):
File "quickstart.py", line 50, in |
Tinderbotz |
---|---|
duration: 62 | |
like: 10 | |
dislike: 5 | |
superlike: 1 |
\==============/ Started session: 2023-05-26 17:57:40 Ended session: 2023-05-26 17:58:24