Activity Stream
48,167 MEMBERS
62829 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member

    Default bash script mass download from links in text file

    This is simple one.
    First get your all links in one text file. One link one line, no spaces in links.
    I'm using curl with wget here. Probably is possible to use only curl or only wget but i didn't try it.

    here's the code
    Code: 
    ## first do loop condition to read from file
    
    while read line ;
    do
    
    ## now use curl to get cookie, this is for filesonic
    
    curl --cookie-jar /your/path/cookies.txt \  ## where you want to save cookie
    --data "email=your@email.com" \
    --data "password=yourpassword" http://www.filesonic.com/user/login ;
    
    ## now download from every link
    
    wget --continue --load-cookies=/your/path/cookies.txt \  ## --continue is to resume download
    --output-document=/your/path/file.rar \ ## this is optional
    $line ;
    
    done < /your/path/links.txt ;
    I'm getting cookie before every download because if u get cookie only on the start of the script session might expire and you will download nothing after that.
    Mutikasa Reviewed by Mutikasa on . bash script mass download from links in text file This is simple one. First get your all links in one text file. One link one line, no spaces in links. I'm using curl with wget here. Probably is possible to use only curl or only wget but i didn't try it. here's the code ## first do loop condition to read from file while read line ; do Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    wget -i links.txt

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cheap Text links on Rardownload.net and Mass Submitter
    By hdspot.net in forum Traffic Market (Buy, Sell and Trade)
    Replies: 2
    Last Post: 26th Sep 2012, 04:21 AM
  2. mass upload bash script (good for Megaupload)
    By Mutikasa in forum Tutorials and Guides
    Replies: 7
    Last Post: 13th Jan 2012, 12:54 PM
  3. ssh/bash script
    By t3od0r in forum Technical Help Desk Support
    Replies: 0
    Last Post: 6th Oct 2010, 06:41 PM
  4. file download script
    By accyuklad in forum Web Application/Script Support
    Replies: 0
    Last Post: 15th Sep 2010, 12:52 PM
  5. Need A Bash Script
    By orbofdarkness in forum Technical Help Desk Support
    Replies: 14
    Last Post: 8th Feb 2010, 08:02 PM

Tags for this Thread

BE SOCIAL