Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
restrict to 'xml' parser
Browse files Browse the repository at this point in the history
  • Loading branch information
angelinekwan committed Jul 6, 2023
1 parent 0a3c74d commit bb214d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postprocess_sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open('./_build/html/sitemap.xml', 'r') as f:
contents = f.read()

soup = BeautifulSoup(contents, 'lxml')
soup = BeautifulSoup(contents, 'xml')

urls = soup.find_all('url')

Expand Down

0 comments on commit bb214d5

Please sign in to comment.