Skip to content

Instantly share code, notes, and snippets.

@super3
super3 / gist:6788272
Last active December 24, 2015 10:59
Bitcoin Data Archiver
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)
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: