LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-05-2006, 05:52 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Fedora Core, Slackware, Vector Linux, Ubuntu
Posts: 1,167

Rep: Reputation: 46
offline web viewer


I'd like to be able to spyder web pages on my Linux box and take them to work where I don't have internet access and read them on my WinXP pc. What software does this?
 
Old 07-05-2006, 06:02 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
You can use wget to do this. It is capable of following links and downloading relating resources and all.
 
Old 07-05-2006, 06:44 PM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Fedora Core, Slackware, Vector Linux, Ubuntu
Posts: 1,167

Original Poster
Rep: Reputation: 46
wget -r URL

that's what I did but the links created point to a http location. How do I change the links to point to files?
 
Old 07-06-2006, 11:38 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
Use the convert-links option (-k/--convert-links). This will make the pages suitable for local viewing, as per the man page:
Code:
       -k
       --convert-links
           After the download is complete, convert the links in the document
           to make them suitable for local viewing.  This affects not only the
           visible hyperlinks, but any part of the document that links to
           external content, such as embedded images, links to style sheets,
           hyperlinks to non-HTML content, etc.

           Each link will be changed in one of the two ways:

           *   The links to files that have been downloaded by Wget will be
               changed to refer to the file they point to as a relative link.

               Example: if the downloaded file /foo/doc.html links to
               /bar/img.gif, also downloaded, then the link in doc.html will
               be modified to point to ../bar/img.gif.  This kind of transfor‐
               mation works reliably for arbitrary combinations of directo‐
               ries.

           *   The links to files that have not been downloaded by Wget will
               be changed to include host name and absolute path of the loca‐
               tion they point to.
               Example: if the downloaded file /foo/doc.html links to
               /bar/img.gif (or to ../bar/img.gif), then the link in doc.html
               will be modified to point to http://hostname/bar/img.gif.

           Because of this, local browsing works reliably: if a linked file
           was downloaded, the link will refer to its local name; if it was
           not downloaded, the link will refer to its full Internet address
           rather than presenting a broken link.  The fact that the former
           links are converted to relative links ensures that you can move the
           downloaded hierarchy to another directory.

           Note that only at the end of the download can Wget know which links
           have been downloaded.  Because of that, the work done by -k will be
           performed at the end of all the downloads.
 
  


Reply

Tags
browsing, local, wget


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web crawler/viewer microsoft/linux General 10 05-07-2006 02:31 AM
photoshop file viewer & chm file viewer alaios Linux - Software 5 03-25-2006 06:56 AM
Download web site...... (offline browsing) alaios Linux - Software 9 10-11-2005 05:39 AM
Offline CD... rajsun Programming 1 09-23-2005 04:17 PM
how can i donload and view entire web site offline !! hitesh_linux Linux - Software 8 03-08-2004 10:32 AM


All times are GMT -5. The time now is 05:46 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration