Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def __total_pages(self):
     return AgreementWay.unpickle(self.__market_making_url % 0, 'totalPages')
Exemplo n.º 4
0
 def __total_pages(self):
     return AgreementWay.unpickle(self.__market_making_url % 0,
                                  'totalPages')