Me

def block_an_user(selenium_session,user):
  • Explanation

    • This function will block an user
  • Parameters:

    • selenium_session -selenium browser
    • user -user to be blocked
  • Return:

    • True if the blocking succed or the user is already blocked
    • False if it failed
def unblock_an_user(selenium_session,user):
  • Explanation

    • This function will unblock an user
  • Parameters:

    • selenium_session -selenium browser
    • user -user to be unblocked
  • Return:

    • True if the unblocking succed or the user is already unblocked
    • False if it failed
def dm_an_user(selenium_session,user,text):
  • Explanation

    • This function will dm an user with a certain text
  • Parameters:

    • selenium_session -selenium browser
    • user -user to be dm
    • text -text to be send
  • Return:

    • True if the dm succed
    • False if it failed
def get_list_of_my_followers(selenium_session):
  • Explanation

    • This function will list all the followers of your account
  • Parameters:

    • selenium_session -selenium browser
  • Return:

    • List of all your followers if it's succed
    • List of almost all your followers if it's succed but failed sometimes during the process
    • An empty list if the function 100% failed
def get_list_of_my_following(selenium_session):
  • Explanation

    • This function will list all the followings of your account
  • Parameters:

    • selenium_session -selenium browser
  • Return:

    • List of all your followings if it's succed
    • List of almost all your followings if it's succed but failed sometimes during the process
    • An empty list if the function 100% failed
def get_list_of_homepage_tweet(selenium_session,nb_of_tweet_to_search=25):
  • Explanation

    • This function will get a list of information about my last x homepage tweets
  • Parameters:

    • selenium_session -selenium browser
    • nb_of_tweet_to_search -number of tweets to retrieve (the maximum number of tweets you can search is up to 100 to avoid tweet search limitations)
  • Return:

    • If it succed a list of dictionaries for each tweet retrieved each one have the username ,text,id,url,date,number of likes ,number of retweets,the number of replies
    • If it failed an empty list
def get_mention(selenium_session,nb_of_mention=25):
  • Explanation

    • This function will retrieve your last x mention
  • Parameters:

    • selenium_session -selenium browser
    • nb_of_mention -number of mention to retrieve (the maximum number of mention you can search is up to 100 to avoid limitation)
  • Return:

    • If it succed a list of dictionaries for each mention retrieved each one have the username ,text,id,url,date,number of likes ,number of retweets,the number of replies
    • If it failed an empty list
def change_bio(selenium_session,text):
  • Explanation

    • This function will change your twitter bio
  • Parameters:

    • selenium_session -selenium browser
    • text -text that will be your new bio
  • Return:

    • True if it succed
    • False if it failed
def change_name(selenium_session,text):
  • Explanation

    • This function will change your twitter name
  • Parameters:

    • selenium_session -selenium browser
    • text -text that will be your new name
  • Return:

    • True if it succed
    • False if it failed
def change_location(selenium_session,text):
  • Explanation

    • This function will change your twitter location
  • Parameters:

    • selenium_session -selenium browser
    • text -text that will be your new location
  • Return:

    • True if it succed
    • False if it failed
def change_url(selenium_session,text):
  • Explanation

    • This function will change your twitter url
  • Parameters:

    • selenium_session -selenium browser
    • text -text that will be your new url
  • Return:

    • True if it succed
    • False if it failed
def change_profile_picture(selenium_session,filepath):
  • Explanation

    • This function will change your twitter profile picture
  • Parameters:

    • selenium_session -selenium browser
    • filepath -filepath to the picture to be set as your new profile picture
  • Return:

    • True if it succed
    • False if it failed
def change_profile_banner(selenium_session,filepath):
  • Explanation

    • This function will change your twitter banner
  • Parameters:

    • selenium_session -selenium browser
    • filepath -filepath to the picture to be set as your new banner
  • Return:

    • True if it succed
    • False if it failed