Skip to content

Commit

Permalink
refactor: refactor on parse method
Browse files Browse the repository at this point in the history
  • Loading branch information
talesmota committed May 9, 2024
1 parent a01c0a3 commit ed2f0d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data_collection/gazette/spiders/pr/pr_guaratuba.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def parse(self, response):
pdf_relative_link = _a.css("::attr(href)").get()
pdf_links.append(self.base_url + pdf_relative_link)
label = _a.css("::text").get().strip()

if not label:
label, _edition_number = self._extract_label_edition_number(_a)
else:
Expand Down

0 comments on commit ed2f0d5

Please sign in to comment.