Skip to content

Commit

Permalink
Merge pull request #1141 from open-contracting/fix-poland_digiwhist
Browse files Browse the repository at this point in the history
fix(poland_digiwhist): The usual URL is 404
  • Loading branch information
jpmckinney authored Jan 7, 2025
2 parents 787904b + 65e6945 commit 82e1988
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ class GovernmentTransparencyInstituteBase(CompressedFileSpider):
data_type = 'release_package'

# Local
base_url = 'https://opentender.eu/data/downloads/data-{}-ocds-json.zip'
base_url = 'https://opentender.eu/data/downloads/data-{}-{}-json.zip'
infix = 'ocds'

# country_code must be provided by subclasses.

def start_requests(self):
yield self.build_request(self.base_url.format(self.country_code), formatter=components(-1))
yield self.build_request(self.base_url.format(self.country_code, self.infix), formatter=components(-1))
1 change: 1 addition & 0 deletions kingfisher_scrapy/spiders/poland_digiwhist.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
class PolandDigiwhist(GovernmentTransparencyInstituteBase):
name = 'poland_digiwhist'
country_code = 'pl'
infix = 'json' # https://opentender.eu/pl/download

0 comments on commit 82e1988

Please sign in to comment.