Automatik Screenshots of Websites

  • Thread starter Matthias Pospiech
  • Start date
M

Mitja

Shit, I had this legthy reply typed together, and then the comp crashes...
here it is in a much more condensed form:

What you're looking for is called screen capturing software.
Really ?[/QUOTE]
No need for sarcasm, that's how I understood your post and replied with
the best intent. You get all sorts of questions in here.
What I a m looking for should run on a linux system and be called by a
php or perl script and run in the background. Moreover it must be
installable
with normal user rights.

You'll probably want a virtual X server to be able to run mozilla or
something in background, then take screenshots. Have a look at Xvfb.
~$ Xvfb :1 -display 0 1024x768x16
(display no. 1, screen 0 with given resolution)

Then run mozilla using that virtual display
~$ mozilla --display=:1 www.google.com

Then use (as has already been suggested) xwd or import to get the snapshot.
~$ xwd -display :1 -name "mozilla" -out foo.png

-name "mozilla" won't work, mozilla keeps changing its name with the title
of the site you're visiting. So you need to list open windows, see
xlsclients or xlswins. Then parse the output, maybe to get window id of
the mozilla.

See also mozilla -remote "openurl(www.othersite.com)" which should change
the active url of an already running mozilla.

I had problems with the last few things, but just don't have the energy to
write it down once more. Oh, I have to mention the garbled text I got in
mozilla's screenshots. And that xeyes and xlogo ran fine, producing
screenshots the way they should be. And that Xvfb doesn't even need X
running. And that with Opera, well, it's hidden in xlsclients output. And
maybe some other things I've forgotten. Jerky random thoughts, I'm low on
sleep, hope it's not too hard to read...

And google for xvfp screenshot script, I got fine results. Especially
http://www.bedroomlan.org/~alexios/coding_urlshot.html, but it might be
hard to get it to work.

Hope this gives you a good start.
 
D

Disco Octopus

Richard wrote on 8/01/2005 :
I was just wondering.
How are you going to capture a view of the entire page if the page is bigger
than your screen size?

perhaps the OP would like something that is similar to the results that
ninemsn search does... something like this...

http://sea.search.ninemsn.com.au/preview.aspx?&q=richard bullis

It looks like it would take a snap of the viewable page (at a given
resolution I imagine), then would perhaps cache it?? dunno???

I am guessing now, but as ninemsn can do it, I am sure that something
is available.

Is this what the OP was after? If so, and if he/she finds such a
thing, then I would love to hear about it, as I am also wanting
something that does this.
 
M

Matthias Pospiech

Disco said:
Richard wrote on 8/01/2005 : [...]

perhaps the OP would like something that is similar to the results that
ninemsn search does... something like this...

http://sea.search.ninemsn.com.au/preview.aspx?&q=richard bullis

My other example was
One exampel webpage that does this is (just found rigt now)
http://world.dir.nodeworks.com/Deutsch/Computer/Software/TeX/LaTeX/
It looks like it would take a snap of the viewable page (at a given
resolution I imagine), then would perhaps cache it?? dunno???

Maybe your description is better than my original...

[...]
Is this what the OP was after? Exactly!
If so, and if he/she finds such a
thing, then I would love to hear about it, as I am also wanting
something that does this.
From what I have read here it is possible, but not that easy.
since I have not the time to create such a tool, I will be still waiting for
someone else to release such a tool.

Matthias

Matthias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top