-
Notifications
You must be signed in to change notification settings - Fork 0
/
class.py
32 lines (22 loc) · 783 Bytes
/
class.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
import time
import utilities.api as api
import utilities.excel as ex
import utilities.selenium as selenium
class Organization(object):
def __init__(self, name, org):
self.name = name
self.org = org
def excel_file_api(self):
start = time.time()
res = api.get_repo_info(self.name)
print("Runtime: ", time.time() - start)
def excel_file_selenium(self):
start = time.time()
res = selenium.get_repo_info(self.name)
ex.write_to_excel(self.name, res)
print("Runtime: ", time.time() - start)
# Examples
microsoft = Organization(name="Microsoft", org=True)
powershell = Organization(name="PowerShell", org=True)
caneplayz = Organization(name="CanePlayz", org=False)
caneplayz.excel_file_selenium()