mirror of
https://github.com/ioistired/pleroma-ebooks.git
synced 2025-01-10 20:17:37 +01:00
removed unnecessary todo
This commit is contained in:
parent
0625086b4c
commit
e48ce83b02
1
main.py
1
main.py
@ -54,7 +54,6 @@ def extract_toot(toot):
|
|||||||
soup = BeautifulSoup(toot, "html.parser")
|
soup = BeautifulSoup(toot, "html.parser")
|
||||||
|
|
||||||
# this is the code that removes all mentions
|
# this is the code that removes all mentions
|
||||||
# TODO: make it so that it removes the @ and instance but keeps the name
|
|
||||||
for mention in soup.select("span.h-card"):
|
for mention in soup.select("span.h-card"):
|
||||||
mention.a.unwrap()
|
mention.a.unwrap()
|
||||||
mention.span.unwrap()
|
mention.span.unwrap()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user