Me

def follow_an_account(selenium_session,account):
  • Explanation

    • This function will follow an account
  • Parameters:

    • selenium_session -selenium browser
    • account -account to follow
  • Return:

    • True if the account was successfully follow or it was already followed
    • False if it failed
def unfollow_an_account(selenium_session,account):
  • Explanation

    • This function will unfollow an account
  • Parameters:

    • selenium_session -selenium browser
    • account -account to unfollow
  • Return:

    • True if the account was successfully unfollow or it was already unfollowed
    • False if it failed
def check_if_user_follow(selenium_session,account):
  • Explanation

    • This function will check if an user follow me
  • Parameters:

    • selenium_session -selenium browser
    • account -account to check if he follow me
  • Return:

    • True if the account follow me
    • False if it failed or he doesn't follow me
def get_user_info(selenium_session,user):
  • Explanation

    • This function will get information about an user
  • Parameters:

    • selenium_session -selenium browser
    • account -account to retrieve information
  • Return:

    • If it succed a dictionary containing user username,bio,birthdate,number of tweets,number of followers and number of following
    • An empty dictionary if it failed
def get_user_number_of_media(selenium_session,user):
  • Explanation

    • This function will the number of media of an user
  • Parameters:

    • selenium_session -selenium browser
    • account -account to retrieve number of media
  • Return:

    • If it succed number of media post by the user
    • 0 if it failed
def get_user_number_of_like(selenium_session,user):
  • Explanation

    • This function will the number of tweet an user has like
  • Parameters:

    • selenium_session -selenium browser
    • account -account to retrieve number of tweet liked
  • Return:

    • If it succed number of tweets the user has liked
    • 0 if it failed
def get_list_of_user_tweet(selenium_session,account,nb_of_tweet_to_search=10):
  • Explanation

    • This function will retrieve the last X tweets of an user
  • Parameters:

    • selenium_session -selenium browser
    • account -account to retrieve tweets
    • nb_of_tweet_to_search -number of tweets to see (the limit is at 1000 to avoid twitter limitation)
  • Return:

    • If it succed a list of dictionaries for each tweets 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_list_of_user_retweet(selenium_session,account,nb_of_tweet_to_search=10):
  • Explanation

    • This function will retrieve the last X retweets of an user
  • Parameters:

    • selenium_session -selenium browser
    • account -account to retrieve retweets
    • nb_of_tweet_to_search -number of retweets to see (the limit is at 1000 to avoid twitter limitation)
  • Return:

    • If it succed a list of dictionaries for each retweets 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_list_of_user_comment(selenium_session,account,nb_of_tweet_to_search=10):
  • Explanation

    • This function will retrieve the last X comments of an user
  • Parameters:

    • selenium_session -selenium browser
    • account -account to retrieve comments
    • nb_of_tweet_to_search -number of comments to see (the limit is at 1000 to avoid twitter limitation)
  • Return:

    • If it succed a list of dictionaries for each comments 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 is_account_private(selenium_session,account):
  • Explanation

    • This function will check if an account is private
  • Parameters:

    • selenium_session -selenium browser
    • account -account to check if he is private
  • Return:

    • True if the account is private
    • False if it failed or the account isn't private
def is_account_banned(selenium_session,account):
  • Explanation

    • This function will check if an account is ban
  • Parameters:

    • selenium_session -selenium browser
    • account -account to check if he is ban
  • Return:

    • True if the account is ban
    • False if it failed or the account isn't ban
def is_account_private(selenium_session,account):
  • Explanation

    • This function will check if an account is private
  • Parameters:

    • selenium_session -selenium browser
    • account -account to check if he is private
  • Return:

    • True if the account is private
    • False if it failed or the account isn't private
def is_account_blocking_you(selenium_session,account):
  • Explanation

    • This function will check if an account blocked me
  • Parameters:

    • selenium_session -selenium browser
    • account -account to check if he blocked me
  • Return:

    • True if the account blocked me
    • False if it failed or the account didn't blocked me
def is_account_existing(selenium_session,account):
  • Explanation

    • This function will check if an account exist
  • Parameters:

    • selenium_session -selenium browser
    • account -account to check if he exist
  • Return:

    • True if the account doesn't exist
    • False if the account exist