示例#1
0
    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)
示例#2
0
    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)
示例#3
0
 def __total_pages(self):
     return AgreementWay.unpickle(self.__market_making_url % 0, 'totalPages')
示例#4
0
 def __total_pages(self):
     return AgreementWay.unpickle(self.__market_making_url % 0,
                                  'totalPages')