Skip to content

Commit

Permalink
fix(colo, coloctapp): change default user agent
Browse files Browse the repository at this point in the history
Solves #1340; site was blocking "Juriscraper" user agent
  • Loading branch information
grossir committed Mar 3, 2025
1 parent 27ba5e5 commit 199b99c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions juriscraper/opinions/united_states/state/colo.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self, *args, **kwargs):
"hide_ct6": "true",
}
self.update_url()
self.request["headers"]["User-Agent"] = "Courtlistener"

# https://www.coloradojudicial.gov/system/files/opinions-2024-11/24SC459.pdf
# Request won't work without some of these X- headers
Expand Down

0 comments on commit 199b99c

Please sign in to comment.