Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Apr 7, 2022
1 parent 68c6dea commit 14f2317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kingfisher_scrapy/spiders/nigeria_osun_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def start_requests(self):
def parse_list(self, response):
pattern = '//table[@id="contractTable"]/tbody/tr/td[2]/a/@href'
for item in response.xpath(pattern):
# The URL looks like https://egp.osunstate.gov.ng/existing_award_details.php?id=ocds-xwwr9a-000103-OS/HLT/02
# The URLs looks like
# https://egp.osunstate.gov.ng/existing_award_details.php?id=ocds-xwwr9a-000103-OS/HLT/02
ocid = get_parameter_value(item.get(), 'id').replace('/', '_')
yield self.build_request(f'{self.base_url}media/{ocid}.json', formatter=components(-1))

0 comments on commit 14f2317

Please sign in to comment.