def make_market_data(self, current_page): keys = ['hqzqdm', 'hqzqjc', 'hqzrsp', 'hqjrkp', 'hqzjcj', 'hqcjsl', 'hqcjje', 'hqbjw1', 'hqsjw1', 'hqzdf'] url = self.__market_making_url % current_page data = AgreementWay.unpickle(url, 'content') for _item in data: item_list = AgreementWay.format([_item[k] for k in keys]) write(self.__market_making_fn, item_list)
def make_market_data(self, current_page): keys = [ 'hqzqdm', 'hqzqjc', 'hqzrsp', 'hqjrkp', 'hqzjcj', 'hqcjsl', 'hqcjje', 'hqbjw1', 'hqsjw1', 'hqzdf' ] url = self.__market_making_url % current_page data = AgreementWay.unpickle(url, 'content') for _item in data: item_list = AgreementWay.format([_item[k] for k in keys]) write(self.__market_making_fn, item_list)
def __total_pages(self): return AgreementWay.unpickle(self.__market_making_url % 0, 'totalPages')