This file contains hidden or 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
import urllib | |
from time import sleep | |
from datetime import datetime | |
TIME_INTERVAL = 900 # 15 minutes | |
def pull_page(name, folder_name, file_ext, pull_url): | |
print("Pulling {0}...".format(name)) | |
outfile = folder_name + "/" + folder_name + "_" + str(datetime.utcnow()).replace(' ', '_') + file_ext | |
urllib.urlretrieve(pull_url, filename=outfile) |
This file contains hidden or 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
def generate_email(f_name, l_name): | |
"""Returns a random email.""" | |
common_email_providers = ["hotmail", "msn", "aol", "yahoo", "gmail"] | |
dictionary = file_to_list('data/dictionary.txt') | |
dictionary = small_dict(dictionary, 6) | |
user = "" | |
for i in range(3): | |
rand = random.randrange(1, 6) | |
if rand == 1: |
NewerOlder