xaynetwork/xayn_readability

Will this be ready to launch soon?

Opened this issue · 5 comments

I’ve got a project that would really benefit from this library. Been following it for a little while and was hoping you didn’t mind a poke about it. How soon do you think until this is ready?

Looking forward to it!

Hey @alexanderblackh!

It's pretty much ready, but is awaiting a bit of cleanup etc...

But if you are looking to use it already, feel free, glad to help out where needed

Thanks so much @frankpepermans ! Excited!

By chance, can I pass a cloned dom string to it instead of passing a new uri? I wanna create reader mode of content shown in a webview, so I’d like to avoid two web requests for one domain.

Sure, you just need to create an Uri from your html String, using https://api.dartlang.org/stable/dart-core/Uri/Uri.dataFromString.html

Thanks @frankpepermans ! Bit new to Flutter so sorry if that was a noob question.

Btw, are you working on documentation for it atm? If not, I’d be happy to write the readme docs as I’m implementing this and you can use it as a foundation for proper read-me.

Can confirm this is working! Can't seem to figure out how to use this with a Dom string returned by injecting document.body.innerHTML to my web view, URI.dataFromString didn't work, it just says invalid character.