-
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.
Merge pull request #479 from open-contracting/477-kyrgyzstan
Add Kyrgyzstan scraper
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import scrapy | ||
|
||
from kingfisher_scrapy.base_spider import LinksSpider | ||
from kingfisher_scrapy.util import parameters | ||
|
||
|
||
class Kyrgyzstan(LinksSpider): | ||
""" | ||
Spider arguments | ||
sample | ||
Downloads the first release package returned by the main endpoint. | ||
""" | ||
name = 'kyrgyzstan' | ||
data_type = 'release_package' | ||
next_page_formatter = staticmethod(parameters('offset')) | ||
|
||
def start_requests(self): | ||
yield scrapy.Request('http://ocds.zakupki.gov.kg/api/tendering', meta={'file_name': 'offset-0.json'}) |