LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Problem in saving "complete" webpage (https://www.linuxquestions.org/questions/general-10/problem-in-saving-complete-webpage-4175438845/)

future_computer 11-26-2012 10:03 PM

Problem in saving "complete" webpage
 
A webpage like this:
http://top7.com/top/3375/Female-Singers-Of-2012

I saved it as complete webpage,
but when I open it later,
some pictures can not appear.
Why?

I tried with IE, firefox, chrome etc, also faced the same problem.

RaviTezu 11-26-2012 10:16 PM

What do you mean by "Saving a webpage"?

on to your computer? & how?

RaviTezu 11-26-2012 10:18 PM

you have to bookmark it, in order to view the pictures in the web page as they are fetched from different databases.

future_computer 11-27-2012 12:30 AM

I book mark it, but i want to view it offline,
so I saved it as a complete HTML webpage.
But when I open it offline, some pictures do not show up.

fakie_flip 11-27-2012 02:56 AM

wget --mirror -p --html-extension --convert-links -v http://top7.com/top/3375/Female-Singers-Of-2012

RaviTezu 11-27-2012 11:22 AM

That is not possible dude.
you can't do that..until & unless you make changes to the html code(path's for the pictures should be local) to view the page as online & even you have to save the pictures in you machine.

David the H. 11-28-2012 09:28 AM

The easiest way to save a "complete" page is to use the Mozilla Archive Format extension. This saves and bundles everything up into a zip archive (with a .maff extension) that can be opened by any browser that has the add-on installed. Or it can be unzipped and viewed directly in any browser.

https://addons.mozilla.org/en-US/fir...rchive-format/

Notice too that it also supports the Microsoft .mht format, which works in a similar way.

rtmistler 11-28-2012 01:46 PM

I just did this using firefox on the webpage you included in your original query and it worked fine. If you hadn't loaded the entire web pages, allowed all scripts to run, etc; i.e. if some images were not showing when you performed your save, then you won't see those images in the saved complete form. Further, you cannot change the name once you save unless you change the name of the folder that is also created. And by the way, the folder created does contain all the embedded content, so it's not merely in that one HTML file, it is also in a same named sub-folder. So if you save complete then copy just the HTML file to somewhere else without also copying the sub-directory matching that web page name, then that's why you're not seeing what you expect.

rtmistler 11-28-2012 01:49 PM

If you still have trouble, check out this instruction page found via a simple google search:

http://www.makeuseof.com/tag/save-co...fline-reading/

future_computer 11-29-2012 06:01 PM

I use IE to save it,
it can be opened offline but some pictures are missing.
I had made sure the webpage was loaded fully before saving.

k3lt01 11-29-2012 07:32 PM

Quote:

Originally Posted by future_computer (Post 4839848)
I use IE to save it,
it can be opened offline but some pictures are missing.
I had made sure the webpage was loaded fully before saving.

This is the Linux-Newbie section and you are not a newbie and also know that IE is Windows. So if you are using Windows and it wont work for you ask in the appropriate place or even on a Windows IE forum.

Reporting this trhead to recommend it be moved to General or somewhere apart from Linux-*

future_computer 11-29-2012 07:51 PM

Saving as *mht format is ok.
But only Maxthon and Avant Browser can open it.

David the H. 11-30-2012 05:38 AM

Did you miss the part where I said the MAF extension supports .mht too?

colucix 11-30-2012 09:02 AM

Moved: This thread is more suitable in General and has been moved accordingly to help your thread/question get the exposure it deserves.

future_computer 11-30-2012 09:00 PM

When saving a webpage, you can choose to save a "complete webpage" in html format, I assume every details in the page will be saved and when you open it later offline, you see exactly what you saw before.
But this is not the case, sometimes it is even difficult to be opened by IE/Firefox, waiting for long time and it opens with missing details, like certain pictures are not shown.

fakie_flip 12-06-2012 10:02 PM

Quote:

Originally Posted by RaviTezu (Post 4838083)
That is not possible dude.
you can't do that..until & unless you make changes to the html code(path's for the pictures should be local) to view the page as online & even you have to save the pictures in you machine.

From the wget man page.

Under DESCRIPTION:
Quote:

Wget can be instructed to convert the links in downloaded files to point at the local files, for offline viewing.
And

Quote:

-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 transformation works reliably for arbitrary
combinations of directories.

· The links to files that have not been downloaded by Wget will be changed to include host name and absolute path of the location 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.

nigelc 12-07-2012 01:14 AM

Hi,
I saved it using chromium.
Just move the cursor onto a blank place on the web page click on right mouse button.
Save as.
Just remember where you saved it.
cheers


All times are GMT -5. The time now is 12:32 AM.