Пример #1
0
    def __init__(self, items, spider):
        Item.__init__(self)
        for k, v in items.items():
            self[k] = v

        self[SPIDER] = {'name': spider.name,
                        'cfg': spider.config_file,
                        'ctime': int(time.time()),
                        'site': spider.config.get('name'),
                        'media_type': spider.config.get(MEDIA_TYPE)}
Пример #2
0
    def __init__(self, items, spider):
        Item.__init__(self)
        for k, v in items.items():
            self[k] = v

        self[SPIDER] = {
            'name': spider.name,
            'site': spider.conf_name,
            'ctime': int(time.time()),
        }
Пример #3
0
 def __init__(self, item = None):
     if item == None:
         Item.__init__(self)
         self['cid'] = 0
         self['name'] = ""
         self['caseCode'] = ""
         self['cardNum'] = ""
         self['businessEntity'] = ""
         self['courtName']= ""
         self['areaName'] = ""
         self['gistId'] = ""
         self['regDate'] = ""
         self['gistUnit'] = ""
         self['duty'] = ""
         self['performance'] = ""
         self['disruptTypeName'] = ""
         self['publishDate'] = ""
     else:
         Item.__init__(self,item)
Пример #4
0
 def __init__(self, item=None):
     if item == None:
         Item.__init__(self)
         self["cid"] = 0
         self["name"] = ""
         self["caseCode"] = ""
         self["cardNum"] = ""
         self["businessEntity"] = ""
         self["courtName"] = ""
         self["areaName"] = ""
         self["gistId"] = ""
         self["regDate"] = ""
         self["gistUnit"] = ""
         self["duty"] = ""
         self["performance"] = ""
         self["disruptTypeName"] = ""
         self["publishDate"] = ""
     else:
         Item.__init__(self, item)
Пример #5
0
 def __init__(self, item = None):
     if item == None:
         Item.__init__(self)
         self['cid'] = 0
         self['name'] = ""
         self['caseCode'] = ""
         self['age'] = ""
         self['sex'] =  ""
         #self['focusNumber'] = ""
         self['cardNum'] = ""
         self['courtName']= ""
         self['areaName'] = ""
         self['partyTypeName'] = ""
         self['gistId'] = ""
         self['regDate'] = ""
         self['gistUnit'] = ""
         self['duty'] = ""
         self['performance'] = ""
         self['disruptTypeName'] = ""
         self['publishDate'] = ""
     else:
         Item.__init__(self,item)
Пример #6
0
 def __init__(self, item=None):
     if item == None:
         Item.__init__(self)
         self["cid"] = 0
         self["name"] = ""
         self["caseCode"] = ""
         self["age"] = ""
         self["sex"] = ""
         # self['focusNumber'] = ""
         self["cardNum"] = ""
         self["courtName"] = ""
         self["areaName"] = ""
         self["partyTypeName"] = ""
         self["gistId"] = ""
         self["regDate"] = ""
         self["gistUnit"] = ""
         self["duty"] = ""
         self["performance"] = ""
         self["disruptTypeName"] = ""
         self["publishDate"] = ""
     else:
         Item.__init__(self, item)
Пример #7
0
    def __init__(self, items, ext=None):
        Item.__init__(self)
        for k, v in items.items():
            self[k] = v

        self['ext'] = ext
Пример #8
0
 def __init__(self, **kargs):
     kargs.update(kind='user')
     Item.__init__(self, **kargs)
Пример #9
0
 def __init__(self, **kargs):
     kargs.update(kind='bangumi')
     Item.__init__(self, **kargs)
Пример #10
0
 def __init__(self,other=None):
     Item.__init__(self)
Пример #11
0
 def __init__(self):
     Item.__init__(self)
     cityid = 0
     url = ""
     name = ""
     parentcityid = 0
Пример #12
0
 def __init__(self, items, spider, **kwargs):
     Item.__init__(self)
     for k, v in items.items():
         self[k] = v
Пример #13
0
 def __init__(self, items, spider, **kwargs):
     Item.__init__(self)
     for k, v in items.items():
         self[k] = v