Example #1
0
 def __init__(self, *args, **kwargs):
     super(BBSItem, self).__init__(self, *args, **kwargs)
     self['platform'] = ''
     self['keyword'] = ''
     self['insert_time'] = ctime.GetNowTime()
     self['bbs_url'] = ''
     self['bbs_name'] = ''
     self['bbs_time'] = ''
     self['bbs_floor'] = ""
     self['bbs_info'] = {}
     self['bbs_source_url'] = ''
     self["bbs_id"] = ""
     self['spider'] = ''
     self['searchword'] = ''
     self["pkeyword"] = ""
     self["job_id"] = ""
     self["car_id"] = ""
     self["cache_info"] = {
         "ts": 86400 * 3,
         "file": True
     }
Example #2
0
def printFromHead(s, **kw):
    printNoEnd("\r" + dt.GetNowTime() + "\t" + str(s), **kw)