Blacklist Features¶
-
app.blacklist.add_user_to_blacklist(account_id, browser, profile, blacklist, action, logger)¶ Adds a profile to user blacklist campaign
- Args:
account_id: account_id of the logged in username browser: web driver profile: profile to be added to blacklist campaign blacklist: blacklist setup action: action done by the user (like or follow) logger: library to log actions.
-
app.blacklist.get_followed_by_campaign(campaign)¶ Get all followed users from a blacklist campaign
- Args:
campaign: blacklist campaign name - Returns:
- List of profiles followed by the campaign
-
app.blacklist.get_profiles_from_blacklist_campaign(blacklist, username, logger)¶ Returns all users from a blacklist campaign
- Args:
blacklist: blacklist setup account_id: username account id logger: library to log actions - Returns:
- list of profile names from the campaign
-
app.blacklist.is_user_in_followed_blacklist(profile, blacklist)¶ Check if profile is in blacklist (followed by the blacklist campaign)
- Args:
profile: profile to be checked blacklist: blacklist setup - Returns:
- True or False
-
app.blacklist.is_user_in_liked_blacklist(profile, blacklist)¶ Check if profile is in blacklist (liked by the blacklist campaign)
- Args:
profile: profile to be checked blacklist: blacklist setup - Returns:
- True or False
-
app.blacklist.mark_as_unfollowed_by_blacklist_campaign(profile, campaign, logger)¶ Update database marking the profile as unfollowed by the blacklist campaign
- Args:
profile: profile to by marked as unfollowed by blacklist campaign campaign: black campaign name logger: library to log actions