IS there any way i can do that?
                
                A: 
                
                
              Yes, you could write an AppleScript to automate Safari to do the printing (and the fetching, if you'd like, though you can drive wget from AppleScript using do shell script). If you don't fancy using AppleScript, you could use Automator instead; the result would be pretty much the same.
BTW if you aren't using Mac OS X, it wasn't clear from the question you asked :-)
                  Graham Lee
                   2008-12-21 12:11:50
                
              But why would you /assume/ Mac OS X?
                  Geoffrey Chetwood
                   2008-12-21 14:30:29
                I didn't assume Mac OS X. I provided one way for Nick Long to export all the pages in a website into a single PDF. He asked for _any_ way.
                  Graham Lee
                   2008-12-21 15:00:03
                This is true he did state is there ANY WAY to do it. Rich B provided a way.
                  Bobby Cannon
                   2008-12-21 15:27:02
                Sorry I meant Graham Lee... Is there a way to edit a comment?
                  Bobby Cannon
                   2008-12-21 15:28:44
                no, but you can delete them and re-comment should you desire. Not sure whether that needs a particular reputation or not.
                  Graham Lee
                   2008-12-21 15:38:13
                "This is true he did state is there ANY WAY to do it." No, he specifically mentioned wget, which Graham's answer ignored.
                  R. Bemrose
                   2008-12-23 18:09:49
                Oh, fair point, I'll edit my answer. Thanks.
                  Graham Lee
                   2008-12-30 15:26:04
                
                +1 
                A: 
                
                
              
            I did this once. It was almost 10 years ago, however, so I don't remember the details.
I used:
- wgetto download the pages
- html2psto convert the individual pages to PostScript
- ps2psto splice the individual PostScript files together
- ps2psagain, to put 4 pages on 1
Then I sent the PostScript file to the printer. Since you want PDF you could add an additional step of ps2pdf.
                  Jörg W Mittag
                   2008-12-23 17:53:46