示例#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')