Skip to content

Commit

Permalink
Spider documentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nativaldezt committed Nov 17, 2020
1 parent a76339a commit 8318da6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions kingfisher_scrapy/spiders/spain_zaragoza.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ class SpainZaragoza(SimpleSpider):
"""
Domain
Ayuntamiento de Zaragoza
Spider arguments
from_date
Download only data from this date onward (YYYY-MM-DDTHH:mm:ss format).
If ``until_date`` is provided, defaults to '2000-01-01T00:00:00'.
until_date
Download only data until this date (YYYY-MM-DDTHH:mm:ss format).
If ``from_date`` is provided, defaults to today.
Swagger API documentation
https://www.zaragoza.es/docs-api_sede/
"""
Expand All @@ -34,5 +27,6 @@ def start_requests(self):
def parse_list(self, response):
ids = json.loads(response.text)
for contracting_process_id in ids:
url = self.url + contracting_process_id['ocid']
ocid = contracting_process_id['ocid']
url = f'{self.url}{ocid}'
yield self.build_request(url, formatter=components(-1))

0 comments on commit 8318da6

Please sign in to comment.