Update
This commit is contained in:
parent
d16cbdbffc
commit
5c09e23172
@ -15,6 +15,10 @@ html = docutils.core.publish_parts(open(filename, mode="r").read(),
|
|||||||
|
|
||||||
|
|
||||||
def extract_docinfos(html):
|
def extract_docinfos(html):
|
||||||
|
"""
|
||||||
|
Parse the publish_parts dictionary and return a dictionary containing
|
||||||
|
the docinfos from the RsT document.
|
||||||
|
"""
|
||||||
soup1 = bs4.BeautifulSoup(html["docinfo"], 'html.parser')
|
soup1 = bs4.BeautifulSoup(html["docinfo"], 'html.parser')
|
||||||
return { tr.find("th").text:
|
return { tr.find("th").text:
|
||||||
tr.find("td").text
|
tr.find("td").text
|
||||||
|
Loading…
Reference in New Issue
Block a user