Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create thumbnails of web pages using a layout engine in Perl?

Tags:

webkit

perl

gecko

Are there bindings for layout engines like Gecko or WebKit for Perl? I found Gtk2-Webkit on CPAN but I would like to know if there are other options.

My idea is to use one of those engines to create thumbnails of web pages from a Perl script.

like image 329
munissor Avatar asked Nov 13 '09 10:11

munissor


3 Answers

I haven't tried it myself, but the documentation for WWW::Mechanize::FireFox looks pretty impressive.

Update:

Tried it now. This rocks. You can indeed remote-control Firefox whatever way you want and create screen-shots easily.

like image 74
innaM Avatar answered Oct 21 '22 09:10

innaM


XUL::Gui allows you to create GUI applications using Firefox. I am not sure if this corresponds to your needs, but it would be an interesting module to examine.

Update: XUL::Gui indeed is an interesting module to examine, but I did not realize how far WWW::Mechanize::Firefox had come.

like image 3
Sinan Ünür Avatar answered Oct 21 '22 09:10

Sinan Ünür


Also Gtk2::MozEmbed

like image 2
Alexandr Ciornii Avatar answered Oct 21 '22 08:10

Alexandr Ciornii