Skip to content

Commit

Permalink
fix(poland_digiwhist): The usual URL is 404
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jan 7, 2025
1 parent f053761 commit 65e6945
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 65e6945

Please sign in to comment.