data_collection/gazette/spiders/pe_recife.py
def parse_editions_in_date(self, response):
        """
        Parses available editions to request only Recife's gazette documents.
        """
        recife_editions = self._find_recife_editions(response.text)
        date = response.meta["date"]

        for edition in recife_editions:
            url = self.GAZETTE_URL.format(
                full_year=date.strftime("%Y"),
                full_date=date.strftime("%Y%m%d"),
                edition_type=edition,
                edition_type_name_only=re.search(r"\w+$", edition).group(),
            )

            yield Gazette(
                date=date,
                file_urls=[url],
                is_extra_edition=self._is_extra(edition),
                power="executive_legislative",
            )

        Parses available editions to request only Recife's gazette documents.
        
Parses available editions to request only Recife's gazette documents.
Parses available editions to request only Recife ' s gazette documents .
def parse_editions_in_date(self, response):
        recife_editions = self._find_recife_editions(response.text)
        date = response.meta["date"]
        for edition in recife_editions:
            url = self.GAZETTE_URL.format(
                full_year=date.strftime("%Y"),
                full_date=date.strftime("%Y%m%d"),
                edition_type=edition,
                edition_type_name_only=re.search(r"\w+$", edition).group(),
            )
            yield Gazette(
                date=date,
                file_urls=[url],
                is_extra_edition=self._is_extra(edition),
                power="executive_legislative",
            )
def parse_editions_in_date ( self , response ) : recife_editions = self . _find_recife_editions ( response . text ) date = response . meta [ "date" ] for edition in recife_editions : url = self . GAZETTE_URL . format ( full_year = date . strftime ( "%Y" ) , full_date = date . strftime ( "%Y%m%d" ) , edition_type = edition , edition_type_name_only = re . search ( r"\w+$" , edition ) . group ( ) , ) yield Gazette ( date = date , file_urls = [ url ] , is_extra_edition = self . _is_extra ( edition ) , power = "executive_legislative" , )
Parses available editions to request only Recife's gazette documents.
Parses available editions to request only Recife ' s gazette documents .
"""
        Parses available editions to request only Recife's gazette documents.
        """
self
response