Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions analyst_sheets/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,15 @@ def get_version_status(version: dict) -> int:
if redirects and redirects[-1].endswith('epa.gov/sites/production/files/signpost/cc.html'):
return 404

# Special case for climate.nasa.gov getting moved with bad redirects for
# all the sub-pages (they all redirected to the new home page).
if (
redirects
and re.match(r'^https?://climate.nasa.gov/.+$', url, re.IGNORECASE)
and redirects[-1].endswith('://science.nasa.gov/climate-change/')
):
return 404

if version['title']:
# Page titles are frequently formulated like "<title> | <site name>" or
# "<title> | <site section> | <site name>" (order may also be reversed).
Expand Down