示例#1
0
 def __init__(self, url, skip=True):
     self.url = Url(url)
     self.errors = []
     self.urls = []
     self.followed = []
     self.skip = skip
     ThreadLoop.__init__(self)
     self.sTime = time.time()
     self.eTime = 0
     self.tTime = 0
示例#2
0
文件: spider.py 项目: Petraea/jsonbot
 def __init__(self, url, skip=True):
     self.url = Url(url)
     self.errors = []
     self.urls = []
     self.followed = []
     self.skip = skip
     ThreadLoop.__init__(self)
     self.sTime = time.time()
     self.eTime = 0
     self.tTime = 0
示例#3
0
文件: sink.py 项目: NURDspace/jsonbot
 def __init__(self, name="", queue=None, *args, **kwargs):
     ThreadLoop.__init__(self, name, queue, *args, **kwargs)
     self.cbs = Dol()