-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Atualiza documentações do repositório (#1120)
- Loading branch information
Showing
6 changed files
with
86 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from datetime import date | ||
|
||
from gazette.items import Gazette | ||
from gazette.spiders.base import BaseGazetteSpider | ||
|
||
class UFMunicipioSpider(BaseGazetteSpider): | ||
name = "$name" | ||
TERRITORY_ID = "" | ||
allowed_domains = ["$domain"] | ||
start_urls = ["$url"] | ||
start_date = date() | ||
|
||
def parse(self, response): | ||
# Lógica de extração de metadados | ||
|
||
# partindo de response ... | ||
# | ||
# ... o que deve ser feito para coletar DATA DO DIÁRIO? | ||
# ... o que deve ser feito para coletar NÚMERO DA EDIÇÃO? | ||
# ... o que deve ser feito para coletar se a EDIÇÃO É EXTRA? | ||
# ... o que deve ser feito para coletar a URL DE DOWNLOAD do arquivo? | ||
|
||
yield Gazette( | ||
date = date(), | ||
edition_number = "", | ||
is_extra_edition = False, | ||
file_urls = [""], | ||
power = "executive", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters