diff --git a/clean/ca/chula_vista_pd.py b/clean/ca/chula_vista_pd.py index 9168cbc..e987d29 100644 --- a/clean/ca/chula_vista_pd.py +++ b/clean/ca/chula_vista_pd.py @@ -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: