Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit716b827

Browse files
authored
Merge pull requestflairNLP#794 from flairNLP/recover-from-malformed-xml
Handle malformed XML
2 parentse39b108 +3f1cb64 commit716b827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/fundus/scraping/url.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class Sitemap(URLSource):
164164
_decompressor:ClassVar[_ArchiveDecompressor]=_ArchiveDecompressor()
165165
_sitemap_selector:ClassVar[XPath]=XPath("//*[local-name()='sitemap']/*[local-name()='loc']")
166166
_url_selector:ClassVar[XPath]=XPath("//*[local-name()='url']/*[local-name()='loc']")
167-
_parser=XMLParser(strip_cdata=False)
167+
_parser=XMLParser(strip_cdata=False,recover=True)
168168

169169
def__iter__(self)->Iterator[str]:
170170
defyield_recursive(sitemap_url:str)->Iterator[str]:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp