Giter VIP home page Giter VIP logo

Comments (2)

adentranter avatar adentranter commented on June 18, 2024 1

The link to Readbility is broken ( https://github.com/mozilla/fathom/issues/Readability#algorithm ) from within the first comment.

[Fixed!]

from fathom.

erikrose avatar erikrose commented on June 18, 2024

Changes by Moz:

  • Give up if no body tag.
  • Add tests.
  • Use JSDOMParser, and change traversal significantly ( d94f3158d374e181fb0cbb9ea33afa705f61f806)
  • Improve byline extraction.
  • Look at the scores of parents of the top candidate, and recognize them as content if they appear to be going up as we ascend the tree. (955951659d15ae363e20ec59441ba010c7853b95)
  • Replace explicit iterator loops with forEach.
  • Strip embed tags.
  • Improve support for YouTube and Vimeo embedded videos.
  • Various other fixes
  • Preserve inline tweets in an article.
  • Don't remove figure tags.
  • Add isProbablyReaderable(), which guesses if it's readerable without actually parsing the whole thing.
  • Lose Share buttons.
  • Don't remove "unlikely" tags as zealously; keep their content.
  • Generally play whack-a-mole with class names to keep up with a changing web: "modal", "related", etc.

Stopped reading commit history at 6eeabf90c1b4e5754e0a39fe401e40179d9e94d8. Continue forward in time from there if you like.

from fathom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.