Skip to content

Instantly share code, notes, and snippets.

@razvanvilceanu
Created January 10, 2021 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save razvanvilceanu/9ef9bd30ca7e623101817b0a92e5e0c8 to your computer and use it in GitHub Desktop.
Save razvanvilceanu/9ef9bd30ca7e623101817b0a92e5e0c8 to your computer and use it in GitHub Desktop.
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