Is it possible to parse an option to wget ?

Ask for help about FlashGot, no registration needed to post
Post Reply
TheExplorer
Junior Member
Posts: 22
Joined: Sat Jul 10, 2010 8:12 pm

Is it possible to parse an option to wget ?

Post by TheExplorer »

Hi everybody, especially Giorgio! :)
I have a question concerning your FlashGot extension: is it possible to parse an option to wget? For e.g. I always want to parse -c option to wget when downloading anything (-c option means "continue downloading" after the connection was lost for e.g.)

Thank you in advance!

Alex
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Is it possible to parse an option to wget ?

Post by Giorgio Maone »

Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
TheExplorer
Junior Member
Posts: 22
Joined: Sat Jul 10, 2010 8:12 pm

Re: Is it possible to parse an option to wget ?

Post by TheExplorer »

Thanks! Sorry I didn't see this page.
The only thing I can't understand what do I have to put there for options. Simply "[URL] -c" would be enough or what exactly do I have to put? I'm using Linux actually.

P.S. None of them seem to work for me... I tried "[URL] -c" and "wget -c"
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Is it possible to parse an option to wget ?

Post by Giorgio Maone »

On Linux, you should use /usr/bin/wget (or wherever it is) as the executable path and something like

Code: Select all

-c [URL]
as the argument template.

Please notice, though, that the built-in wget support already includes the -c argument, having a template like this:

Code: Select all

-c [-O FNAME] [--directory-prefix=FOLDER] [--referer=REFERER] [--post-data=POST] [--load-cookies=CFILE] [--header=Cookie:COOKIE] [--input-file=UFILE] [URL]
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
TheExplorer
Junior Member
Posts: 22
Joined: Sat Jul 10, 2010 8:12 pm

Re: Is it possible to parse an option to wget ?

Post by TheExplorer »

Oh, already hardcoded! Thank you very much!
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16
Post Reply