mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
Remove collection selectors since they don't work anyways
This is specifically the selectors next to collections (List, gallery, timeline, etc.)
This commit is contained in:
parent
a007681f72
commit
93d36eb338
@ -342,6 +342,10 @@ class Parser:
|
|||||||
for vendors_css in soup.find_all("link", href=lambda x: x and "vendors~" in x):
|
for vendors_css in soup.find_all("link", href=lambda x: x and "vendors~" in x):
|
||||||
vendors_css.decompose()
|
vendors_css.decompose()
|
||||||
|
|
||||||
|
# collection selectors (List, Gallery, etc.) don't work, so remove them
|
||||||
|
for collection_selector in soup.findAll("div", {"class": "notion-collection-view-select"}):
|
||||||
|
collection_selector.decompose()
|
||||||
|
|
||||||
# clean up the default notion meta tags
|
# clean up the default notion meta tags
|
||||||
for tag in [
|
for tag in [
|
||||||
"description",
|
"description",
|
||||||
|
Loading…
Reference in New Issue
Block a user