Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Website screenshot

by Anonymous Monk
on Jan 06, 2007 at 03:14 UTC ( #593260=note: print w/ replies, xml ) Need Help??


in reply to Website screenshot

This will take multiple steps.

  1. First download a copy of the webpage using LWP::Simple
  2. Convert the HTML to PS.
  3. Convert the PS (PostScript) to either a PDF or Gif.
You'll simply have to google each of the above steps to find out how to do them.


Comment on Re: Website screenshot
Replies are listed 'Best First'.
Re^2: Website screenshot
by Trimbach (Curate) on Jan 06, 2007 at 05:38 UTC
    2. Convert the HTML to PS.

    And after that you'd end up with a PDF or a gif of something that looked like this:

    <html> <head><title>This is an unrendered web page</title></head> <body> . . . </body>

    That's not exactly what the OP is trying to do... :-D

    Gary Blackburn
    Trained Killer

      Actually there is a program called html2ps that translates the rendered html to ps. I haven't had much luck getting it installed - but it would serve to do the trick.

      my @a=qw(random brilliant braindead); print $a[rand(@a)];
        True, but the key word here is "rendered html." Rendering the HTML of the page you want to screen capture is the most important (and most non-trivial) step, and it's that step that was omitted in the post I responded to. :-D

        Gary Blackburn
        Trained Killer

        I tried a similar thing a few years back, getting the page with wget, then using html2ps, then piping it to imagemagik. Unfortunatly it renders the 'screen' over multiple images. I never found a way to have it actually thumbnail it on one page (or after a certain screen size)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://593260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2015-07-08 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls