Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get filesize #190

Closed
samrat opened this issue Oct 9, 2011 · 7 comments
Closed

get filesize #190

samrat opened this issue Oct 9, 2011 · 7 comments
Labels

Comments

@samrat
Copy link

@samrat samrat commented Oct 9, 2011

Since the file size is known before the download completes, an option could be added to find the filesize similar to --get-filename.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 10, 2011

While the filesize is known while downloading, it is generally not known before downloading. We'll need to send a HEAD request in these cases then.

@samrat
Copy link
Author

@samrat samrat commented Oct 11, 2011

@phihag - Can I find the filesize without downloading then? Could you please show me how to do it? I really need this.

@sivaramn
Copy link

@sivaramn sivaramn commented Nov 18, 2011

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. :-)

@yasoob
Copy link
Contributor

@yasoob yasoob commented Jul 8, 2013

@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. :)

@shirishag75
Copy link

@shirishag75 shirishag75 commented Aug 30, 2013

interested in it as well hence commenting.

@xanadu
Copy link
Contributor

@xanadu xanadu commented Aug 30, 2013

You guys will find out a lot of sites are not friendly with HEAD request.

@ghost
Copy link

@ghost ghost commented Jun 18, 2014

Same as #6.

@ghost ghost closed this Jun 18, 2014
@yan12125 yan12125 mentioned this issue Apr 13, 2016
5 of 8 tasks complete
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.