Skip to content

Commit

Permalink
Merge 4c72dda into 1ae39f2
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Feb 27, 2021
2 parents 1ae39f2 + 4c72dda commit ebf1efa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kingfisher_scrapy/spiders/nepal_dhangadhi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ def parse_list(self, response):
pattern = 'https://admin.ims.susasan.org/ocds/json/dhangadhi-{}.json'
data = response.json()
for item in data['data']['fiscal_years']:
yield self.build_request(pattern.format(item['name']), formatter=components(-1))
# A URL might redirect to https://admin.ims.susasan.org/login
yield self.build_request(pattern.format(item['name']), formatter=components(-1),
meta={'dont_redirect': True})

0 comments on commit ebf1efa

Please sign in to comment.