mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #1114 from brannerchinese/master
xml => lxml for bs4, in pelican-import.wp2fields()
This commit is contained in:
commit
c60e0d03fb
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ def get_items(xml):
|
||||||
sys.exit(error)
|
sys.exit(error)
|
||||||
with open(xml, encoding='utf-8') as infile:
|
with open(xml, encoding='utf-8') as infile:
|
||||||
xmlfile = infile.read()
|
xmlfile = infile.read()
|
||||||
soup = BeautifulSoup(xmlfile, "xml")
|
soup = BeautifulSoup(xmlfile, "lxml")
|
||||||
items = soup.rss.channel.findAll('item')
|
items = soup.rss.channel.findAll('item')
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue