Y T Nuke  
Results 1 to 1 of 1
This is for bash linux but I think there's some program for windows with which ...
  1. #1
    Mutikasa's Avatar
    Mutikasa is offline Regular Member
    Join Date
    May 2011
    Posts
    305
    Reputation
    16
    Thanks
    87
    Thanked 111 Times in 34 Posts

    Default [tut] mass download upload from txt file in command line

    This is for bash linux but I think there's some program for windows with which u can run bash scripts.
    First u need to get two programs. For downloading there's http://rg3.github.com/youtube-dl/ and for uploading there's http://code.google.com/p/youtube-upload/, both written in python. I don't know about the first one but uploader uses youtube API.
    I have hundred accounts and upload videos always from the same IP and never got terminated all at once. Only one account at the time.

    Now, this is the script that downloads video from youtube and saves it with "title" as filename, then uploads it with the same title with words from title as tags.

    Code:
    #!/bin/bash
    
    ## this part is to download from list of urls in file 
    while read line
    do
    youtube-dl -o %\(title\)s.%\(ext\)s "$line"
    done < list.txt
    
    ## when every video is down we have to loop through them, usual exts 
    ## are mp4 and flv
    for file in *.{mp4,flv}
    do
    title="${file%.*}"
    
    ## this eliminate words with less than two chars from title because 
    ##youtube doesn't accept too small tags
    keywords=($(echo ${title}))
    i=0;
    for tag in "${keywords[@]}";
    do
    len=${#tag};
    if (( "$len" < 2 ))
    then
    keywords[$i]="";
    fi;
    let i=i+1;
    done
    keywords=$(echo ${keywords[@]} | sed 's/ /,/g');
    
    # now we upload videos
    youtube-upload --email=email@yahoo.com --password=blabla \
    --title="$title" \
    --description="look at my video and visit my cool website" \
    --keywords="${keywords}, hot, babe, kissing" \
    --category=Film \
    "$file";
    done
    You can tweak this to suits your needs of course
    [GET] Advanced Google AdWords http://bit.ly/IHCkLx

  2. The Following 2 Users Say Thank You to Mutikasa For This Useful Post:

    LongBanana (02-19-2012), MicGrez (01-29-2012)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76