-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDatabank.py
79 lines (63 loc) · 2.14 KB
/
Databank.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from bs4 import BeautifulSoup
import requests
import random
import string
class Databank:
def __init__(self):
self.temp_email = ''
self.password = '1qaz2wsX'
self.gmail_password = 'mobiletesting'
self.fname = 'Sealbot'
self.lname = 'Labfellow'
self.login_email = ['[email protected]']
self.email_subject='ICSTSuperCool'
self.bill_amount = '56.6'
self.bill_tip = '15'
self.bill_people = '4'
self.search_keyword = 'Automated'
@staticmethod
def generate_temp_emails():
for i in range(5):
uname = ""
uname += random.choice(string.ascii_lowercase)
uname += ''.join(random.choice(string.digits) for j in range(6))
uname += 'se'
domain = ""
domain += ''.join(random.choice(string.ascii_lowercase) for j in range(6))
domain += 'al.net'
print(uname + '@' + domain)
def get_temp_email(self, renew=True):
if not renew and self.temp_email:
return self.temp_email
uname = ""
uname += random.choice(string.ascii_lowercase)
uname += ''.join(random.choice(string.digits) for j in range(6))
uname += 'se'
domain = ""
domain += ''.join(random.choice(string.ascii_lowercase) for j in range(6))
domain += '.al.net'
email = uname + '@' + domain # e.g., [email protected]
self.temp_email = email
return self.temp_email
def get_password(self):
return self.password
def get_gmail_password(self):
return self.gmail_password
def get_fname(self):
return self.fname
def get_lname(self):
return self.lname
def get_login_email(self):
return self.login_email
def get_gmail(self):
return self.login_email
def get_email_subject(self):
return self.email_subject
def get_bill_amount(self):
return self.bill_amount
def get_bill_tip(self):
return self.bill_tip
def get_bill_people(self):
return self.bill_people
def get_search_keyword(self):
return self.search_keyword