Skip to content

Commit

Permalink
Linted. Oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
stucka committed Sep 3, 2024
1 parent 839d460 commit 34459df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clean/ca/chula_vista_pd.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ def scrape_meta(self, throttle=0):
title = title.replace("\u00a0", " ").replace("\u2014", "--")
redirect_start = "/?splash="
redirect_end = "&____isexternal=true"

# Clean up links. Check to see if it's a redirect:
if redirect_start in link_href:
link_href = link_href.replace(redirect_start, "").replace(redirect_end, "")
link_href = link_href.replace(redirect_start, "").replace(
redirect_end, ""
)
link_href = urllib.parse.unquote(link_href)
name = title
else:
Expand Down

0 comments on commit 34459df

Please sign in to comment.