Ejemplo n.º 1
0
    # 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 = "Belgium"
    phone_number = "479011124"
    session.loginUsingSMS(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
    # NOTE: these recommendations apply mostly to large amounts of swiping (+100 likes)
    session.like(amount=10, ratio="72.5%", sleep=1)
    session.dislike(amount=1)
    session.superlike(amount=1)

    # adjust allowed distance for geomatches
    # Note: You need to be logged in for this setting
    # Note: PARAMETER IS IN KILOMETERS!
    session.setDistanceRange(km=150)

    # set range of allowed ages
    # Note: You need to be logged in for this setting
    session.setAgeRange(18, 55)

    # set interested in gender(s) -> options are: WOMEN, MEN, EVERYONE
    session.setSexuality(Sexuality.WOMEN)
Ejemplo n.º 2
0
    # 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 = "United Kingdom"
    phone_number = "7450621862"
    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=10, ratio="80%", 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, 32)

    # 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(True)