Author Topic: Local Website content to PDF?  (Read 5049 times)

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Local Website content to PDF?
« Reply #15 on: November 28, 2011, 07:16:20 PM »
It pulled everything image wise, maybe because i used -r?

Any event I'm 97 pages in to the ctrl-p method and probably bout 50 left so screw it.
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

webwhy

  • Jackass IV
  • Posts: 608
  • Karma: +15/-10
Re: Local Website content to PDF?
« Reply #16 on: November 28, 2011, 09:55:56 PM »
If you used wget to pull the pages, you have the rendered HTML that is generated by the ASP, not the ASP code itself. It doesn't matter that the extension is .asp, it's still just HTML code. One of the html2pdf projects I linked to above should be able to render pdfs from the HTML, but the quality will vary... also, wget only pulls the page you request, not embedded images and things like that. It also doesn't execute javascript if the page depends on it during loading.

wget can also speak ftp.  i assumed he mirrored the entire site with -m and ftp and had the entire site locally.
« Last Edit: November 29, 2011, 08:54:17 AM by webwhy »

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Local Website content to PDF?
« Reply #17 on: November 28, 2011, 11:02:46 PM »
I just used $ wget url -r

it copied all of the pages, images, everything. I dumped that folder onto my local server and it ran exactly as it does live.
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: Local Website content to PDF?
« Reply #18 on: November 29, 2011, 10:00:55 AM »
Ok, so -r or -m will pull referenced URLs. The point I was trying to make is that you now have the HTML and don't need to execute the ASP. That is done server side when you make the wget request.

webwhy

  • Jackass IV
  • Posts: 608
  • Karma: +15/-10
Re: Local Website content to PDF?
« Reply #19 on: November 29, 2011, 12:17:38 PM »
Ok, so -r or -m will pull referenced URLs. The point I was trying to make is that you now have the HTML and don't need to execute the ASP. That is done server side when you make the wget request.

understood...the point i was trying to make is that you can end up with asp and not html using wget.  it depends on how you're using the tool

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Local Website content to PDF?
« Reply #20 on: November 29, 2011, 12:20:43 PM »
I don't think most people would use wget for ftp access.  I think it is reasonable to assume one is using wget to make http(s) requests unless stated otherwise.

Govtcheez

  • Town Idiot
  • Jackass In Charge
  • Posts: 4717
  • Karma: +9/-52
Re: Local Website content to PDF?
« Reply #21 on: November 29, 2011, 03:57:28 PM »
ie: http://georgewbush-whitehouse.archives.gov/ is snapshot of whitehouse.gov on the last day of the GWB presidency.
i don't understand, why isn't this just a homeless person crying

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Local Website content to PDF?
« Reply #22 on: November 29, 2011, 08:37:53 PM »
I don't think most people would use wget for ftp access.  I think it is reasonable to assume one is using wget to make http(s) requests unless stated otherwise.

Really depends. If you want to download a bunch of files or all of them from an ftp server via terminal using wget with the ftp info is easy
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Local Website content to PDF?
« Reply #23 on: November 29, 2011, 10:54:24 PM »
I don't think most people would use wget for ftp access.  I think it is reasonable to assume one is using wget to make http(s) requests unless stated otherwise.

Really depends. If you want to download a bunch of files or all of them from an ftp server via terminal using wget with the ftp info is easy
Or one of 50000 other ftp programs.

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Local Website content to PDF?
« Reply #24 on: November 30, 2011, 12:51:56 AM »
Right, but if you are goi.g to do it from terminal its literally one line

$ wget --username --pass ftp://somesite:25/* -r
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Local Website content to PDF?
« Reply #25 on: November 30, 2011, 01:01:53 AM »
scp -r username@server:/path  Is even better (cause it is secure)

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Local Website content to PDF?
« Reply #26 on: November 30, 2011, 03:01:22 PM »
Hmm never used that one. Thanks
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Local Website content to PDF?
« Reply #27 on: November 30, 2011, 04:09:27 PM »
Well, it doesn't work if all you have is ftp.  It does require ssh access.

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Local Website content to PDF?
« Reply #28 on: November 30, 2011, 07:45:03 PM »
I have it, just never used it. In the case of this thread it was not my server, so wget was the go to choice.
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?