[pull] master from scrapinghub:master#10
Merged
pull[bot] merged 10 commits intozanachka:masterfrom Sep 23, 2025
Merged
Conversation
-beautifulsoup4==4.9.3
+beautifulsoup4==4.13.5
-goose3==3.1.8
+goose3==3.1.20
-html-text==0.5.1
+html-text==0.7.0
-html2text==2020.1.16
+html2text==2025.4.15
-inscriptis==1.1.2
+inscriptis==2.6.0
-justext==2.2.0
+justext==3.0.2
-news-please==1.5.17
+news-please==1.6.16
-newspaper3k==0.2.8
+newspaper4k==0.9.3.1
-readability-lxml==0.7.1
+readability-lxml==0.8.4.1
-trafilatura==0.5.1
+trafilatura==2.0.0
Dragnet does not seem to be installable, likely since it's been unmaintained
since 2019.
All Go libraries would encounter an error parsing this HTML file:
html/0ec95c7261d122f304728e90c983450ef1ce1e0b423546835c397d50aaf0d0f2.html.gz
The error was:
transform: short internal buffer
This was because these Go libraries used `dom.Parse()` from https://github.com/go-shiori/dom
instead of the standard `html.Parse()`. The `dom.Parse()` function wraps HTML parsing
with potential transcoding to UTF-8 and performing Unicode normalization of the input text.
The Go error would be triggered in this transformer chain:
transform.Chain(norm.NFD, ..., norm.NFC)
I'm not exactly sure why, but chaining these transformers together isn't safe
due to internal buffer issues. Furthermore, using `dom.Parse()` to parse HTML
documents in this project isn't necessary because all HTML files in the dataset
are already UTF-8, and article extractor program themselves should not be
responsible for Unicode normalization.
The only Unicode normalization we now to do is strip the soft hyphen character
(U+00AD) in Python scripts that store the results of article parsing.
Tool updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )