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

Bring old readability-server into this repo #21

Merged
merged 4 commits into from
Mar 17, 2025

Conversation

Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Mar 17, 2025

Even though there are long-standing issues with Readability (see #9), we never really completed and validated a viable alternative of our own. We really need to get this tool automated, so for now that means we need to pull in Readability so this repo contains everything needed to actually run the analysis scripts.

This imports the old readability-server from the web-monitoring-changed-terms-analysis repo. I also made a few minor updates as part of doing so:

  • Use the @mozilla/readability NPM package. We used to use their git repo directly because the NPM module seemed unmaintained (the repo had years-newer updates!). This no longer seems to be an issue.
  • Use a newer version of Node.js, which has built-ins for a few things we needed 3rd-party dependencies for before.
  • Update syntax to ESM.

Mr0grog added 4 commits March 17, 2025 12:30
In order to actually get automation running here, this needs to incorporate the readability server we use. I've updated the code *slightly* to account for stuff that's now built-in for more modern versions of Node.js and to use NPM instead of Yarn. It also uses the `@mozilla/readability` NPM package, which seems to be more reliably and actively updated these days (we used to install straight from git because the repo was years more up to date than the package).

Doing this has reminded me of all the things that don't work well in Mozilla's Readability. Really makes me want to take another look at Postlight or at our own stuff, which only ever got halfway done.
@Mr0grog Mr0grog merged commit b77a67d into main Mar 17, 2025
1 check passed
@Mr0grog Mr0grog deleted the readability-is-needed-here-so-it-belongs-here branch March 17, 2025 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant