Skip to content

Commit

Permalink
fix(canada_montreal): Use proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 27, 2024
1 parent 47377f3 commit c0cbf75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kingfisher_scrapy/spiders/canada_montreal.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ class CanadaMontreal(IndexSpider):
http://donnees.ville.montreal.qc.ca/dataset/contrats-et-subventions-api
"""
name = 'canada_montreal'
# Publisher uses Cloudflare (CF-Cache-Status and CF-RAY response headers).
# Publisher uses Cloudflare (CF-Cache-Status and CF-RAY response headers, can verify with curl).
# Cloudflare responds with HTTP 520 if request headers use default user agent.
user_agent = browser_user_agent
# Cloudflare responds with HTTP 520 depending on the server.
custom_settings = {
'HTTPPROXY_ENABLED': True,
}

# BaseSpider
ocds_version = '1.0'
Expand Down

0 comments on commit c0cbf75

Please sign in to comment.