Skip to content

Commit

Permalink
Corrige uso de elementos de lista para parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ogecece committed Sep 25, 2024
1 parent 968d3b5 commit 27a05d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ def parse(self, response, page=1):

for gazette_box in gazette_boxes:
edition_number = (
gazette_boxes.css("td:nth-child(1) a::text")
gazette_box.css("td:nth-child(1) a::text")
.get()
.strip()
.split(" ")[3]
.split("/")[0]
)

date = dateparser.parse(
gazette_boxes.css("td:nth-child(3)::text").get().strip().split(",")[1],
gazette_box.css("td:nth-child(3)::text").get().strip().split(",")[1],
languages=["pt"],
).date()

Expand Down

0 comments on commit 27a05d4

Please sign in to comment.