Пример #1
0
 def __init__(self):
     CourtStore.__init__(self, 'gk_henan_plan')
Пример #2
0
 def __init__(self):
     CourtStore.__init__(self, 'wlmq_court')
Пример #3
0
 def __init__(self):
     CourtStore.__init__(self, 'sz_yt_court')
Пример #4
0
 def __init__(self):
     CourtStore.__init__(self, 'dg_court')
Пример #5
0
 def __init__(self):
     CourtStore.__init__(self, 'gk_xj_plan')
Пример #6
0
 def __init__(self):
     CourtStore.__init__(self, 'cqna_court')
Пример #7
0
 def __init__(self, channel='fs_court'):
     CourtStore.__init__(self, channel)
Пример #8
0
 def __init__(self):
     CourtStore.__init__(self, 'sh_seeds')
Пример #9
0
                    'contentSign':
                    item['contentSign']
                })


def delete_doc():
    p = WLMQDeleter()
    p.dojob()


if __name__ == '__main__':
    # delete_doc()
    url = 'abstract://2005100739298'
    channel = re.search('^(.*):\/\/(.*)', url).group(1)
    print channel
    store = CourtStore(channel)
    res = store.find_new(url)
    print res
    dburl = 'mongodb://*****:*****@localhost/'
    client = pymongo.MongoClient(dburl)
    c = client.zhuanli['page_store_' + channel]
    page = c.find({'indexUrl': url})
    count = 0
    for p in page:
        count += 1
        print p['pageContentPath']
        (ft, ofn, pos) = p['pageContentPath'].split('::')
        reader = BinReader(ofn)
        content = reader.readone_at(int(pos))
        print content[0]
        print content[1]
Пример #10
0
 def __init__(self):
     CourtStore.__init__(self, 'ws_court', dburl='mongodb://localhost/wsw')