Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Import readability.js from npm #95

Merged

Conversation

GjjvdBurg
Copy link
Contributor

This PR removes the need to hard-code Readability.js in the package and instead simply imports it from NPM. This will ensure that the user gets the most recent improvements in readability.js whenever they install ReadabiliPy.

I believe this also solves #92.

This will ensure we get the latest version of readability.js
whenever the user installs ReadabiliPy.
This is a little strange. I had a failing test after
replacing the readability.js version, but looking at
the expected output it seems that this wasn't actually
correct. There were a significant number of repeated
paragraphs, which this commit fixes. Also I think the
output of Readability may have changed somehow, because
extract_text_blocks_as_plain_text wasn't giving the
correct output. I think this commit fixes both issues.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 93.822% when pulling c244e86 on GjjvdBurg:feature/npm_readability into 5543272 on alan-turing-institute:master.

Copy link
Member

@jemrobinson jemrobinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jemrobinson jemrobinson merged commit 8b59a64 into alan-turing-institute:master Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants