Skip to content

Commit

Permalink
Change municipality_id to territory_id
Browse files Browse the repository at this point in the history
  • Loading branch information
dannnylo committed Jun 4, 2018
1 parent c515ff2 commit 2dd5cef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions processing/data_collection/gazette/spiders/rn_natal.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class RnNatalSpider(BaseGazetteSpider):
GAZETTE_ELEMENT_CSS = '#texto a'
MUNICIPALITY_ID = '2408102'
TERRITORY_ID = '2408102'

allowed_domains = ['www.natal.rn.gov.br']
name = 'rn_natal'
Expand All @@ -27,7 +27,7 @@ def parse(self, response):
"""
@url http://www.natal.rn.gov.br/dom/
@returns items 1
@scrapes date file_urls is_extra_edition municipality_id power scraped_at
@scrapes date file_urls is_extra_edition territory_id power scraped_at
"""

for element in response.css(self.GAZETTE_ELEMENT_CSS):
Expand All @@ -40,7 +40,7 @@ def parse(self, response):
date=date,
file_urls=[url],
is_extra_edition=extra_edition,
municipality_id=self.MUNICIPALITY_ID,
territory_id=self.TERRITORY_ID,
power='executive',
scraped_at=datetime.utcnow()
)

0 comments on commit 2dd5cef

Please sign in to comment.