Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Google Blink/Webkit to render HTML code

Sorry if the title somewhat ambiguous.
I'm buliding an app that recieve an URL then return the final HTML code (and save it for caching), after Ajax and other js feature executed (something like Phantomjs).
My language can call C++ code, so I think it would be nice if I can buid and use Blink/Webkit libary directly.
The issue is both Blink/Webkit document is too big.

UPDATE 1: Which API (Blink has many APIlayer) or a particular class I need to look at?

Do you know any example or tutorial I should look at?
Or any alternative simpler libary?
Thanks

like image 677
nvcnvn Avatar asked Oct 01 '22 04:10

nvcnvn


1 Answers

Finally Chromium project have headless API in development with very good example which can be build using ninja, more information in their project at https://chromium.googlesource.com/chromium/src/+/master/headless/
A video from BlinkOn https://www.youtube.com/watch?v=GivjumRiZ8c&t=838s

like image 110
nvcnvn Avatar answered Oct 13 '22 10:10

nvcnvn