Skip to content

Commit

Permalink
Merge pull request #479 from open-contracting/477-kyrgyzstan
Browse files Browse the repository at this point in the history
Add Kyrgyzstan scraper
  • Loading branch information
yolile authored Sep 1, 2020
2 parents 5ab8eeb + 6b18bac commit da5ffe1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kingfisher_scrapy/spiders/kyrgyzstan.py
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'})

0 comments on commit da5ffe1

Please sign in to comment.