Skip to content

Commit

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

0 comments on commit 99d6787

Please sign in to comment.