-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsurush.py
More file actions
43 lines (30 loc) · 814 Bytes
/
surush.py
File metadata and controls
43 lines (30 loc) · 814 Bytes
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
import Khadang
class surush:
proxy=[]
def loadWS(self,arg):
pass
def ezLoad(self,arg):
pass
def verify(self,arg):
#verify the page actually has loaded fully with no errors
#Returns the content and a flag which explains the extent of issues witht the loaded page.
def private setProxy(self,arg):
self.proxy=arg
def private bezar(self,arg):
#write to disk?
def private begir(self,cursor,arg):
conent=[]
ros=khandang.getRosetaByURL(cursor,arg)
if ros.proxy:
#setProxy(ros.Proxy): call a function? or set a local variable?
if ros.virtual:
#call selenium load
else:
#load normal
return conent
def begirBezar(cursor,arg):
bezar(begir(cursor,arg))
def private bezar(self,conent):
#write to file
def begirBebar(self,cursor,arg):
return begir(cursor,arg)