frederikme / TinderBotz

Automated Tinder bot and scraper using selenium in python.
MIT License
570 stars 148 forks source link

Use DeepFace for image analysis #110

Closed bleshik closed 1 year ago

bleshik commented 1 year ago

Also, fixes https://github.com/frederikme/TinderBotz/issues/98

Arwiim commented 1 year ago

Can u give an example of how to use this image analyze? @bleshik

bleshik commented 1 year ago

Can u give an example of how to use this image analyze? @bleshik

geomatch = session.get_geomatch(quickload=False)
ai_data = geomatch.get_images_ai_data()
if len([i for i in range(len(ai_data)) if ai_data[i].get("dominant_race") != "white" or ai_data[i].get("dominant_gender") != "Woman"]) > 0:
    session.dislike()
else:
    session.like(amount=1, ratio="100%", sleep=1)
Arwiim commented 1 year ago

This is amazing! thanks!