fixed typo

This commit is contained in:
Lynne 2019-07-04 18:08:00 +10:00
parent 40eb3ed173
commit 068ea7242f

View File

@ -77,7 +77,7 @@ def extract_toot(toot):
for ht in soup.select("a.hashtag"): #make hashtags no longer links, just text
ht.unwrap()
for link in soup.select("a"): #ocnvert <a href='https://example.com>example.com</a> to just https://example.com
for link in soup.select("a"): #convert <a href='https://example.com>example.com</a> to just https://example.com
link.insert_after(link["href"])
link.decompose()