Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

how to get file size of all linked files in a web page at once? without downloading them.

like pdf, wmv, mp3 , quicktime etc.

share|improve this question
    
You sure come up with interesting questions. =) –  Nathaniel Jan 26 '10 at 1:06

5 Answers 5

For both of these Methods, I am assuming you want to measure the size of a page as well as all the pages it links to, with all their resources and not a single page with its resources.

Easiest way is probably to use something like HTTrack and point it to your site, then look at all the files it pulled and get their size - not that accurate as it adds a header and footer, but the easiest way I can think of if you do not have access to the files.

If you do have access, just select them manually and look at properties.

share|improve this answer
    
I want to take size only images, pdf, flv, quicktimr, mp3 etc –  metal gear solid Nov 25 '09 at 7:13
    
From reading your other comment about the PDF and FLV files - I think your best bet is to just get HTTrack and use it, set it to 0 link depth and it should be able to download everything related to the page you select. Obviously it will actually download it all... but you will know the exact size of everything. –  William Hilsum Nov 25 '09 at 7:39
    
can we just see size without downloading –  metal gear solid Nov 25 '09 at 7:46
    
Not easily or automatically (AFAIK) the site will just say "item.flv" unless you connect to or request a download (even if you don't actually download it) there is no way to know its size. –  William Hilsum Nov 25 '09 at 8:34

The Get File Size add-on can tell you the size for each individual file, but not at the same time. How it works is that it requests the content length header of the remote file. If the server is configured properly, it will tell you the size without you having to download it:

alt text

share|improve this answer
    
no i need to know size for all file at once –  metal gear solid Dec 25 '09 at 7:13

Get the "View Dependencies" add-on for Firefox. Load the webpage in Firefox. Go to "View Dependencies" under the Tools menu.

The window that opens will list all the files that were loaded in order to show the page, along with their sizes in KB.

share|improve this answer
    
no it's not showing any info about linked pdf and flv –  metal gear solid Nov 25 '09 at 6:59
1  
well, you can see the SWF on a YouTube page -- that's the video player, so that's the only "dependency" that Firefox knows about. the FLV playing isn't counted because the SWF loads that through the Flash plugin. ... i don't use a PDF plugin but i'd assume that's similar. –  quack quixote Nov 25 '09 at 15:14

You can call the HTTP HEAD request for each item. That will give you the size in the returned header without getting the file itself.

share|improve this answer
    
please tell me how –  metal gear solid Dec 26 '09 at 5:00

Copy and paste the files/direct links to files into a downloader and check the total size..

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.