By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

Website Capture

P: n/a
Hi,

I want to capture a web site into gif image using Python.
I installed the PIL if it can help.

Dec 25 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Monday 25 December 2006 00:57, yo****@gmail.com wrote:
Hi,

I want to capture a web site into gif image using Python.
I installed the PIL if it can help.
It can't be done with just Python & PIL, that much is for sure. First of all
you need some sort of module/program/(whatever you want to call it) that can
render a given webpage. Then you would proceed to capturing the graphical
output of that module/program/...

Maybe what you should look into are graphical toolkits that possibly provide a
HTML widget from which you can get a graphical display. WxWidgets/WxPython is
one option, and the only other I can think of is GTK/pyGTK.

I hope this helps a little, and Merry Christmas!

- Jonathan Curran
Dec 25 '06 #2

P: n/a
Not sure what OS you are on, but a2ps is one way you could probably do
this:

http://www.infres.enst.fr/~demaille/...legations.html

That will get you as far as PostScript and I imagine it is pretty
straightforward from there to get things into a gif.
Jonathan Curran wrote:
On Monday 25 December 2006 00:57, yo****@gmail.com wrote:
Hi,

I want to capture a web site into gif image using Python.
I installed the PIL if it can help.

It can't be done with just Python & PIL, that much is for sure. First of all
you need some sort of module/program/(whatever you want to call it) that can
render a given webpage. Then you would proceed to capturing the graphical
output of that module/program/...

Maybe what you should look into are graphical toolkits that possibly provide a
HTML widget from which you can get a graphical display. WxWidgets/WxPython is
one option, and the only other I can think of is GTK/pyGTK.

I hope this helps a little, and Merry Christmas!

- Jonathan Curran
Dec 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.