forked from github/pelican
xml => lxml for bs4, in pelican-import.wp2fields()
This commit is contained in:
parent
e2f50750d2
commit
00150f3556
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ def wp2fields(xml):
|
|||
|
||||
with open(xml, encoding='utf-8') as infile:
|
||||
xmlfile = infile.read()
|
||||
soup = BeautifulSoup(xmlfile, "xml")
|
||||
soup = BeautifulSoup(xmlfile, "lxml")
|
||||
items = soup.rss.channel.findAll('item')
|
||||
|
||||
for item in items:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue