def parse_hda_scnd(self, response):
        from json_analysers import home_draw_away

        response.meta['item'].add_value('hda_scnd_results', home_draw_away(response.body))

        #logger_absent.info('Saved: ' + str(response.meta['item'].__dict__))
        yield response.meta['item'].load_item()
Beispiel #2
0
    def parse_hda_scnd(self, response):
        from json_analysers import home_draw_away

        response.meta['item'].add_value('hda_scnd_results',
                                        home_draw_away(response.body))

        yield response.meta['item'].load_item()
    def parse_hda_frst(self, response):
        from json_analysers import home_draw_away

        response.meta['item'].add_value('hda_frst_results', home_draw_away(response.body))

        yield Request(url      = response.meta['requests']['hda_scnd_request'],
                      meta     = {'item':     response.meta['item'], 
                                  'requests': response.meta['requests']},
                      callback = self.parse_hda_scnd)
Beispiel #4
0
    def parse_hda_scnd(self, response):
        from json_analysers import home_draw_away

        response.meta['item'].add_value('hda_scnd_results', home_draw_away(response.body))

        yield response.meta['item'].load_item()