diff --git a/random_profile/assets/email_domains.txt b/random_profile/assets/email_domains.txt deleted file mode 100644 index 76cf6d2..0000000 --- a/random_profile/assets/email_domains.txt +++ /dev/null @@ -1,25 +0,0 @@ -bogusemail.com -planetmail.com -post.com -techie.com -usa.com -writeme.com -workmail.com -myself.com -music.com -mail.com -inmae.com -icqmail.com -hushmail.com -hotmail.com -gmx.com -gmx.net -gmx.at -gmx.de -gmx.ch -asia.com -aol.com -aol.co.uk -aol.de -accountant.com -aim.com diff --git a/random_profile/main.py b/random_profile/main.py index 261092a..4743ddb 100644 --- a/random_profile/main.py +++ b/random_profile/main.py @@ -31,7 +31,6 @@ cities_name_txt = os.path.join(ASSETS_DIR, "cities_name.txt") states_names_txt = os.path.join(ASSETS_DIR, "states_names.txt") job_titles_txt = os.path.join(ASSETS_DIR, "job_titles.txt") -email_domain_txt = os.path.join(ASSETS_DIR, "email_domains.txt") # loading data from txt files fname = load_txt_file(fname_txt) @@ -42,7 +41,6 @@ cities_name = load_txt_file(cities_name_txt) street_names = load_txt_file(street_names_txt) job_titles = load_txt_file(job_titles_txt) -email_domains = load_txt_file(email_domain_txt) class RandomProfile: def __init__(self, num=1): @@ -98,7 +96,7 @@ def full_profile(self, num=None): zip_code = random.randint(10000, 99999) address = f'{street_num} {street} St. {city} {state} {zip_code}' - email = first.lower() + last.lower() + '@' + email_domain + email = first.lower() + last.lower() + '@example.com' profile_dict = {} profile_dict['id'] = unique_id