[ANN] webkitgtk

151 views
Skip to first unread message

Jérémy Lal

unread,
Sep 8, 2014, 11:33:42 AM9/8/14
to nodejs
Hi,

this module is developed only for linux, and provides a nice
API to drive webkit2gtk3:

var View = require('webkitgtk');

View('http://wikipedia.fr').png().save('wiki.pdf');


It can export html, png, pdf, has several useful listeners like
'request' (which can cancel a request), 'response' (which can get the
data), 'ready', 'load'...

have fun.

Jérémy.





Egor Egorov

unread,
Sep 10, 2014, 4:47:49 PM9/10/14
to nod...@googlegroups.com

Yeah if you could provide a link that would be great. 

mscdex

unread,
Sep 10, 2014, 9:31:45 PM9/10/14
to nod...@googlegroups.com
On Wednesday, September 10, 2014 4:47:49 PM UTC-4, Egor Egorov wrote:

Yeah if you could provide a link that would be great. 


Dhi Aurrahman

unread,
Sep 10, 2014, 11:37:28 PM9/10/14
to nod...@googlegroups.com
You can follow the repository from here: https://github.com/kapouer/node-webkitgtk

Cheers,

diorahman

Scott Elcomb

unread,
Sep 11, 2014, 2:09:41 AM9/11/14
to nod...@googlegroups.com
On Wed, Sep 10, 2014 at 4:47 PM, Egor Egorov <egor....@gmail.com> wrote:
> On Monday, September 8, 2014 6:33:42 PM UTC+3, kapouer wrote:
>>
>> Hi,
>>
>> this module is developed only for linux, and provides a nice
>> API to drive webkit2gtk3:
>>
>> var View = require('webkitgtk');
>>
<snip>
>
> Yeah if you could provide a link that would be great.
>

Haven't tried it yet but these look about right:

<https://www.npmjs.org/package/webkitgtk>
<https://github.com/kapouer/node-webkitgtk>

--
Scott Elcomb @psema4
http://psema4.com/pubkey.txt
http://www.pirateparty.ca/

Jérémy Lal

unread,
Sep 23, 2014, 8:33:13 PM9/23/14
to nod...@googlegroups.com
Hello again,
after several modifications, i just pushed version 1.0.

```
WebKit().load('http://github.com')
.png('github.png')
.pdf('github.pdf')
.html(function(err, html) {
// the html body as string
console.log(this.status, html);
}).on('authenticate', function(auth) {
auth.use('mylogin', 'mypass');
}).on('request', function(req) {
if (/\.js/.test(req.uri)) req.uri = null;
}).on('response', function(res) {
console.log(res.status, res.uri);
});
```

and several other stuff :)

Tested on linux with webkit2gtk3 2.4.4

Jérémy

Dhi Aurrahman

unread,
Sep 23, 2014, 8:59:54 PM9/23/14
to nod...@googlegroups.com
nice!
Dhi Aurrahman

GPG Key: http://bit.ly/rckbrsgpg
> --
> Job board: http://jobs.nodejs.org/
> New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/ZccTn2k88AI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
> To post to this group, send email to nod...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/1411518123.3861.13.camel%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages