def __init__(self): CourtStore.__init__(self, 'gk_henan_plan')
def __init__(self): CourtStore.__init__(self, 'wlmq_court')
def __init__(self): CourtStore.__init__(self, 'sz_yt_court')
def __init__(self): CourtStore.__init__(self, 'dg_court')
def __init__(self): CourtStore.__init__(self, 'gk_xj_plan')
def __init__(self): CourtStore.__init__(self, 'cqna_court')
def __init__(self, channel='fs_court'): CourtStore.__init__(self, channel)
def __init__(self): CourtStore.__init__(self, 'sh_seeds')
'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]
def __init__(self): CourtStore.__init__(self, 'ws_court', dburl='mongodb://localhost/wsw')