data_collection/gazette/spiders/pr_curitiba.py
def parse_year(self, response):
        """Request a page for every month.

        A check is made to be sure that requests are not made for the future.
        """
        for month in range(12):
            if date(response.meta["year"], month + 1, 1) <= date.today():
                formdata = {
                    "__EVENTTARGET": "ctl00$cphMasterPrincipal$TabContainer1",
                    "__EVENTARGUMENT": f"activeTabChanged:{month}",
                    "ctl00_cphMasterPrincipal_TabContalegacyDealPooliner1_ClientState": '{{"ActiveTabIndex":{},"TabState":[true,true,true,true,true,true,true,true,true,true,true,true]}}',
                }
                yield scrapy.FormRequest.from_response(
                    response,
                    formdata=formdata,
                    meta={"month": month},
                    callback=self.parse_month,
                )
Request a page for every month.

        A check is made to be sure that requests are not made for the future.
        
Request a page for every month.
A check is made to be sure that requests are not made for the future.
Request a page for every month . A check is made to be sure that requests are not made for the future .
def parse_year(self, response):
        for month in range(12):
            if date(response.meta["year"], month + 1, 1) <= date.today():
                formdata = {
                    "__EVENTTARGET": "ctl00$cphMasterPrincipal$TabContainer1",
                    "__EVENTARGUMENT": f"activeTabChanged:{month}",
                    "ctl00_cphMasterPrincipal_TabContalegacyDealPooliner1_ClientState": '{{"ActiveTabIndex":{},"TabState":[true,true,true,true,true,true,true,true,true,true,true,true]}}',
                }
                yield scrapy.FormRequest.from_response(
                    response,
                    formdata=formdata,
                    meta={"month": month},
                    callback=self.parse_month,
                )
def parse_year ( self , response ) : for month in range ( 12 ) : if date ( response . meta [ "year" ] , month + 1 , 1 ) <= date . today ( ) : formdata = { "__EVENTTARGET" : "ctl00$cphMasterPrincipal$TabContainer1" , "__EVENTARGUMENT" : f"activeTabChanged:{month}" , "ctl00_cphMasterPrincipal_TabContalegacyDealPooliner1_ClientState" : '{{"ActiveTabIndex":{},"TabState":[true,true,true,true,true,true,true,true,true,true,true,true]}}' , } yield scrapy . FormRequest . from_response ( response , formdata = formdata , meta = { "month" : month } , callback = self . parse_month , )
Request a page for every month.
Request a page for every month .
"""Request a page for every month.

        A check is made to be sure that requests are not made for the future.
        """
self
response