data_collection/gazette/spiders/pr_curitiba.py
def parse_month(self, response):
        """Paginates to show all available gazettes and parses first page."""
        page_count = len(response.css(".grid_Pager:nth-child(1) table td").extract())
        yield from self.parse_page(response)
        for page_number in range(2, page_count + 1):
            yield scrapy.FormRequest.from_response(
                response,
                formdata={
                    "__EVENTARGUMENT": f"Page${page_number}",
                    "__EVENTTARGET": "ctl00$cphMasterPrincipal$gdvGrid2",
                },
                callback=self.parse_page,
            )
Paginates to show all available gazettes and parses first page.
Paginates to show all available gazettes and parses first page.
Paginates to show all available gazettes and parses first page .
def parse_month(self, response):
        page_count = len(response.css(".grid_Pager:nth-child(1) table td").extract())
        yield from self.parse_page(response)
        for page_number in range(2, page_count + 1):
            yield scrapy.FormRequest.from_response(
                response,
                formdata={
                    "__EVENTARGUMENT": f"Page${page_number}",
                    "__EVENTTARGET": "ctl00$cphMasterPrincipal$gdvGrid2",
                },
                callback=self.parse_page,
            )
def parse_month ( self , response ) : page_count = len ( response . css ( ".grid_Pager:nth-child(1) table td" ) . extract ( ) ) yield from self . parse_page ( response ) for page_number in range ( 2 , page_count + 1 ) : yield scrapy . FormRequest . from_response ( response , formdata = { "__EVENTARGUMENT" : f"Page${page_number}" , "__EVENTTARGET" : "ctl00$cphMasterPrincipal$gdvGrid2" , } , callback = self . parse_page , )
Paginates to show all available gazettes and parses first page.
Paginates to show all available gazettes and parses first page .
"""Paginates to show all available gazettes and parses first page."""
self
response