mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2025-04-19 10:11:57 +00:00
fedi dev is fun!!!
This commit is contained in:
parent
dada8514e4
commit
bd2b064153
1 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,8 @@ def extract_post(post):
|
||||||
ht.unwrap()
|
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"): #ocnvert <a href='https://example.com>example.com</a> to just https://example.com
|
||||||
|
if 'href' in link:
|
||||||
|
# apparently not all a tags have a href, which is understandable if you're doing normal web stuff, but on a social media platform??
|
||||||
link.insert_after(link["href"])
|
link.insert_after(link["href"])
|
||||||
link.decompose()
|
link.decompose()
|
||||||
|
|
||||||
|
|
Loading…
editor.table_modal.header
Reference in a new issue