Skip to content

Commit 8acfcbc

Browse files
committed
Spoof user agent for noaa.gov links
1 parent ea9cf48 commit 8acfcbc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ sphinx:
2929
config:
3030
linkcheck_ignore: ["https://doi.org/*", "https://zenodo.org/badge/*"] # don't run link checker on DOI links since they are immutable
3131
nb_execution_raise_on_error: true # raise exception in build if there are notebook errors (this flag is ignored if building on binder)
32+
linkcheck_request_headers:
33+
"https://*.noaa.gov/":
34+
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0
3235
html_favicon: notebooks/images/icons/favicon.ico
3336
html_last_updated_fmt: "%-d %B %Y"
3437
html_theme: sphinx_pythia_theme

0 commit comments

Comments
 (0)