-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8508ac4
commit 93e1a53
Showing
4 changed files
with
35 additions
and
95 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 was deleted.
Oops, something went wrong.
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,33 @@ | ||
from kingfisher_scrapy.base_spider import PeriodicSpider | ||
from kingfisher_scrapy.util import components | ||
|
||
|
||
class MexicoINAIAAPI(PeriodicSpider): | ||
""" | ||
Domain | ||
Instituto Nacional de Transparencia, Acceso a la Información y Protección de Datos Personales (INAI) | ||
Spider arguments | ||
from_date | ||
Download only releases from this date onward (YYYY format). | ||
If ``from_date`` is not provided defaults to 2015. | ||
until_date | ||
Download only releases until this date (YYYY format). | ||
If ``from_date`` is not provided defaults to current year. | ||
API documentation | ||
http://contratacionesabiertas.inai.org.mx/contratacionesabiertas/datosabiertos | ||
""" | ||
name = 'mexico_inai_api' | ||
|
||
# BaseSpider | ||
root_path = 'arrayReleasePackage.item' | ||
date_format = 'year' | ||
default_from_date = '2015' | ||
|
||
# SimpleSpider | ||
data_type = 'release_package' | ||
|
||
# PeriodicSpider | ||
pattern = 'http://contratacionesabiertas.inai.org.mx:3000/edca/contractingprocess/{}' | ||
|
||
def get_formatter(self): | ||
return components(-1) |
This file was deleted.
Oops, something went wrong.