Not Logged In

breadability 0.1.17

breadability - another readability Python (v2.6-v3.3) port

I’ve tried to work with the various forks of some ancient codebase that ported
readability to Python. The lack of tests, unused regex’s, and commented out
sections of code in other Python ports just drove me nuts.

I put forth an effort to bring in several of the better forks into one
code base, but they’ve diverged so much that I just can’t work with it.

So what’s any sane person to do? Re-port it with my own repo, add some tests,
infrastructure, and try to make this port better. OSS FTW (and yea, NIH FML,
but oh well I did try)

Python API

Work to be done

Yep, I’ve got some catching up to do. I don’t do pagination, I’ve got a lot of
custom tweaks I need to get going, there are some articles that fail to parse.
I also have more tests to write on a lot of the cleaning helpers, but
hopefully things are setup in a way that those can/will be added.

Support metadata from parsed article [url, confidence scores, all
candidates we thought about?]

More tests, more thorough tests

More sample articles we need to test against in the test_articles

Tests that run through and check for regressions of the test_articles

Tidy’ing the HTML that comes out, might help with regression tests ^^

Multiple page articles

Performance tuning, we do a lot of looping and re-drop some nodes that
should be skipped. We should have a set of regression tests for this so
that if we implement a change that blows up performance we know it right
away.

More docs for things, but sphinx docs and in code comments to help
understand wtf we’re doing and why. That’s the biggest hurdle to some of
this stuff.