Created
January 10, 2021 18:28
-
-
Save razvanvilceanu/9ef9bd30ca7e623101817b0a92e5e0c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep | |
from app.email_handle.email_handler import (get_contacts, | |
send_email) | |
from app.compare_last_files import (import_data, | |
files_to_lists, | |
get_unfollowers, | |
get_new_followers) | |
def complete_tour(): | |
start_scraping() | |
sleep(3) | |
get_followers() | |
sleep(3) | |
save_followers() | |
sleep(1) | |
first, second = import_data(PATH='../data/' + usr) | |
first, second = files_to_lists(first, second) | |
followers = get_new_followers(first, second) | |
unfollowers = get_unfollowers(first, second) | |
names, emails = get_contacts('email_handle/email_list') | |
for e in range(len(names)): | |
send_email(followers, unfollowers, emails[e], usr, email_password, email_sender) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment