-
Notifications
You must be signed in to change notification settings - Fork 0
/
Objects.py
47 lines (43 loc) · 1.83 KB
/
Objects.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
class SiteData(object):
def __init__(self, browser_id=None, site_id=None, localStorage=None, cookies=None, visitData=None, state=None, state_text=None, timeout=None, acceptAllLogs=None):
self.browser_id = browser_id
#self.visit_id = visit_id
self.site_id = site_id
self.localStorage = localStorage
self.cookies = cookies
self.visitData = visitData
self.state = state
self.state_text = state_text
self.timeout = timeout
self.acceptAllLogs= acceptAllLogs
class VisitData(object):
def __init__(self, url, subpage=None, root_url=None, requests=None, responses=None, visit_id=None, subpage_id=None, timeout=None, cookieList=None, state=None, localStorage=None, callstacks=None, dns_responses=None, http_redirects=None, incomplete_visit=None, javascript=None, navigations=None,):
self.url = url
self.subpage = subpage
self.requests = requests
self.responses = responses
self.root_url = root_url
self.visit_id = visit_id
self.subpage_id = subpage_id
self.timeout = timeout
self.cookieList = cookieList
self.state = state
self.localStorage = localStorage
self.callstacks = callstacks
self.dns_responses = dns_responses
self.http_redirects = http_redirects
self.incomplete_visit = incomplete_visit
self.javascript = javascript
self.navigations = navigations
class QueueItem(object):
def __init__(self, site_ID, url, state, subpages, start_time, finish_time, logs):
self.site_ID = site_ID
self.url = url
self.state = state
self.start_time = start_time
self.finish_time = finish_time
self.subpages = subpages
if logs is None:
self.logs = []
else:
self.logs = logs