oscarotero / Embed

Get info from any web service or page
MIT License
2.08k stars 310 forks source link

Article Body? #223

Open Sarke opened 7 years ago

Sarke commented 7 years ago

First off, great work!

I am wondering if there are any plans to also parse the main body of the html? Sort of like "reader mode" in the browser.

Compare to something like: https://mercury.postlight.com/web-parser/

Obviously one could use both, but Embed is so close to providing all the same data (and more!), and would then save an API call to Mercury.

Thanks.

oscarotero commented 7 years ago

This is something hard to archieve and I don't have time to work in it. But I'm open to pull requests with this funcionality. There's the getMainElement function used to limit the scope of the images in the html. Maybe it's a good start.