This commit is contained in:
parent
23f9ce0f07
commit
37669e395c
@ -17,10 +17,10 @@ def process(metadata, output_dir):
|
||||
|
||||
html = bs4.BeautifulSoup(response.content, "html.parser")
|
||||
entry_content = html.select_one("div.entry-content")
|
||||
content_imgs = entry_content.find_all("img")
|
||||
content_as = entry_content.find_all("a")
|
||||
|
||||
for content_img in content_imgs:
|
||||
content_img.decompose()
|
||||
for content_a in content_as:
|
||||
content_a.decompose()
|
||||
|
||||
chapter_title = "Introduction"
|
||||
chapter_content = ""
|
||||
|
Reference in New Issue
Block a user