Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
get filesize #190
get filesize #190
Comments
|
While the filesize is known while downloading, it is generally not known before downloading. We'll need to send a |
|
@phihag - Can I find the filesize without downloading then? Could you please show me how to do it? I really need this. |
|
Second the feature request for --get-filesize option. In lots of places in the developing world, bandwidth is throttled after the first 5Gb/10Gb etc, it would make sense to check the file one's downloading before fetching. Right, I understand that there's a technical issue that you'd have to initiate the download before getting to know the file size but still, it would be an option that the user can try at his own risk. and is there a possibility of --random-wait like wget? That would help in not getting banned accidently. :-) |
|
@samrat check out this gist https://gist.github.com/yasoob/9f5528b97dd4522b48e4 I have outlined a method. There is another method as well if you need it then i will upload it as well. But keep in mind that currently it is possible only for http or https videos not for rtmp. :) |
|
interested in it as well hence commenting. |
|
You guys will find out a lot of sites are not friendly with HEAD request. |
|
Same as #6. |
Since the file size is known before the download completes, an option could be added to find the filesize similar to --get-filename.