Skip to content

Commit

Permalink
fix: extraindo href dos links (okfn-brasil#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjpaulo2 committed Sep 21, 2024
1 parent c3096ac commit c22c4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_collection/gazette/spiders/sp/sp_cacapava.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ def parse(self, response):
edition_number = gazette.css("h3::text").re_first(r"Edição nº (\d+)")
gazette_raw_date = gazette.css("p::text").re_first(r"\d{2}/\d{2}/\d{4}")
gazette_date = datetime.strptime(gazette_raw_date, "%d/%m/%Y").date()
gazette_url = gazette.css("a::attr(href)")
gazette_url = gazette.css("a::attr(href)").extract()

yield Gazette(
date=gazette_date,
edition_number=edition_number,
is_extra_edition=False,
power="executive_legislative",
file_urls=[gazette_url],
file_urls=gazette_url,
)

0 comments on commit c22c4e3

Please sign in to comment.