How can I identify primary article text when scraping news pages
I suspect this is a hard problem and that deep learning is the state of the art. But maybe I'm missing something?
Just to be clear, given the html of a wapo article I want to discard all the affiliate links/comments and focus on the article text. I want a generalized solution for many blogs and news sites.
Any tips?
2 comments
[ 4.2 ms ] story [ 29.9 ms ] threadIt's a very practical start.
I thought the science of it was called "envelope detection" but I'm not getting any relevant hits on that keyword. Will report back if I recall the name.
[0] https://www.npmjs.com/package/unfluff
https://github.com/codelucas/newspaper