Jump to content

So i was wondering if i use the "wget" command and save it to a specific directory like a NAS would the data be first stored on my comp then transferred or just transferred. I only have an 8gb sd card on my raspberry pi and i needed to download lots of anime from a few websites to my NAS. I was planning to make a script or a list of all the links by using  "$ wget https://www.link.com/something{1-15} -O /my_nas_directory". Could i do this or would it not work at all?

 

Link to comment
https://linustechtips.com/topic/744431-i-need-help-with-linux/
Share on other sites

Link to post
Share on other sites

18 minutes ago, Steeve said:

So i was wondering if i use the "wget" command and save it to a specific directory like a NAS would the data be first stored on my comp then transferred or just transferred. I only have an 8gb sd card on my raspberry pi and i needed to download lots of anime from a few websites to my NAS. I was planning to make a script or a list of all the links by using  "$ wget https://www.link.com/something{1-15} -O /my_nas_directory". Could i do this or would it not work at all?

 

Ahh, the world of linux. See, in this community, it's a lot less talking and more RTFMing.

I think the best way to learn linux, is to try it yourself.

 

Want to know which mobo to get?

Spoiler

Choose whatever you need. Any more, you're wasting your money. Any less, and you don't get the features you need.

 

Only you know what you need to do with your computer, so nobody's really qualified to answer this question except for you.

 

chEcK iNsidE sPoilEr fOr a tREat!

Link to comment
https://linustechtips.com/topic/744431-i-need-help-with-linux/#findComment-9431820
Share on other sites

Link to post
Share on other sites

1 minute ago, Steeve said:

Lol ill try.

Oh shoot, forgot to add on the rest of my answer. Anyways here it is:

 

Since you're on a forum, I'm going to assume you have already tried. Bundled with Jessie, is Python.

Here would be my workflow in your situation (though don't actually know how to program Python; languages without semicolons kill me):

  1. Get the program to accept a base link
  2. Get the program to accept the largest numbers/range of numbers
  3. Use a for loop to print "commands" (wget www.link.com) into a .sh file
  4. Use this to make your .sh file executable
  5. Profit

Want to know which mobo to get?

Spoiler

Choose whatever you need. Any more, you're wasting your money. Any less, and you don't get the features you need.

 

Only you know what you need to do with your computer, so nobody's really qualified to answer this question except for you.

 

chEcK iNsidE sPoilEr fOr a tREat!

Link to comment
https://linustechtips.com/topic/744431-i-need-help-with-linux/#findComment-9431883
Share on other sites

Link to post
Share on other sites

1 minute ago, bob51zhang said:

Oh shoot, forgot to add on the rest of my answer. Anyways here it is:

 

Since you're on a forum, I'm going to assume you have already tried. Bundled with Jessie, is Python.

Here would be my workflow in your situation (though don't actually know how to program Python; languages without semicolons kill me):

  1. Get the program to accept a base link
  2. Get the program to accept the largest numbers/range of numbers
  3. Use a for loop to print "commands" (wget www.link.com) into a .sh file
  4. Use this to make your .sh file executable
  5. Profit

u are a legend thank you man

Link to comment
https://linustechtips.com/topic/744431-i-need-help-with-linux/#findComment-9431885
Share on other sites

Link to post
Share on other sites

Just now, Steeve said:

u are a legend thank you man

Am I as good as theLegend27?

Want to know which mobo to get?

Spoiler

Choose whatever you need. Any more, you're wasting your money. Any less, and you don't get the features you need.

 

Only you know what you need to do with your computer, so nobody's really qualified to answer this question except for you.

 

chEcK iNsidE sPoilEr fOr a tREat!

Link to comment
https://linustechtips.com/topic/744431-i-need-help-with-linux/#findComment-9431892
Share on other sites

Link to post
Share on other sites

steeve did you get this to work? 

 

heres an alternative (assuming you have lynx installed) 

 

user@host:~$ lynx -listonly -dump -nonumbers [your site here]  |grep http |[further filtering here such as grep mp4] >files.txt 

 

then a while loop (bash) 

 

user@host:~$ while read line;do wget <options> $line <any other options> ;done <files.txt 

 
 note: [] used in the lynx command to avoid confusion with the redirect (>) to a file . 

 

sample output of the lynx command above to stdout : 

 

user@host:~$ lynx -listonly -dump -nonumbers www.google.com |grep http
http://www.google.com/imghp?hl=en&tab=wi 
http://maps.google.com/maps?hl=en&tab=wl
https://play.google.com/?hl=en&tab=w8
http://www.youtube.com/?tab=w1
http://news.google.com/nwshp?hl=en&tab=wn
https://mail.google.com/mail/?tab=wm
https://drive.google.com/?tab=wo
and more

 

Link to comment
https://linustechtips.com/topic/744431-i-need-help-with-linux/#findComment-9451277
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×