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

Extraction improvements (blogspot fix) #70

Merged
merged 3 commits into from
Apr 30, 2016

Conversation

haroldtreen
Copy link
Collaborator

@haroldtreen haroldtreen commented Apr 26, 2016

I noticed that extraction of blogspot articles was really poor.

Looking at the HTML for blogspot I noticed that these classes are used but they aren't given a high weight by readability.

Adding these regexes fixed it for me.

Let me know if you have any concerns. Blogspot is pretty prevalent and it would be great to see readability handle these pages well.

Example page: https://mechanical-sympathy.blogspot.ca/2012/08/memory-access-patterns-are-important.html

Also fixed a failing test. Seems that requesting the white-house website can yield inconsistent results. Downloaded the html and added it as a fixture.

@luin luin merged commit 18c26bf into luin:master Apr 30, 2016
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.

2 participants