Skip to content

Latest commit

 

History

History
executable file
·
93 lines (69 loc) · 3.19 KB

README.md

File metadata and controls

executable file
·
93 lines (69 loc) · 3.19 KB

rubytube-downloader

A ruby script that i used it for download batch video or audio from youtube playlist

_ installing:

$ git clone https://github.com/motebaya/rubytube-downloader
$ cd rubytube-downloader
$ gem build
$ gem install rubytube-downloader-1.2.0.gem
$ rubytube-dl --help

_ run on local server

  • using shotgun for development or directly run with ruby for production
$ gem install shotgun -v 0.9.2
$ gem install sinatra -v 3.0.6
$ gem install puma -v 4.3.8
$ shotgun index.rb
== Shotgun/Puma on http://127.0.0.1:9393/
Puma starting in single mode...
* Version 4.3.8 (ruby 3.1.4-p223), codename: Mysterious Traveller
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://127.0.0.1:9393
Use Ctrl-C to stop

screenshot

_ CLI Command:

            ┬─┐┬ ┬┌┐ ┬ ┬┌┬┐┬ ┬┌┐ ┌─┐ ┌┬┐┬
            ├┬┘│ │├┴┐└┬┘ │ │ │├┴┐├┤───│││
            ┴└─└─┘└─┘ ┴  ┴ └─┘└─┘└─┘ ─┴┘┴─┘
      ~ a ruby script for DL batch youtube video ~
          ~ © https://github.com/motebaya ~

    Usage: rubytube-dl [OPTIONS]
        -u, --url url                    youtube video/shorts url
        -o, --output output              output path download e.g: '/home/username/'
        -s, --server server              select server, server list: [ youtube, savetube, y2mate ]
        -t, --type type                  type of media: audio (.mp3) or video (.mp4)
        -c, --config                     using config from: 'config.yml'
        -p, --playlist playlist          youtube playlist url
        -h, --help                       show help and exit.

_ single url

from single

_ playlist url

from playlist

- Note
  • savetube limit request:

    <!doctype html>
    <html lang=en>
    <title>429 Too Many Requests</title>
    <h1>Too Many Requests</h1>
    <p>120 per 1 hour</p>
    
  • youtube signature authorization issue:

    "signatureCipher":"s=_%3DUVUYL4RQgaW7wZtZMBwYK199-NuGB9GFGcDD%3DmdxyTzAEiAgfRlI2ag5SFdxPkA1qFxBLvDNDgzegohCUWxdDTTAGKAhIgRw8JQ0qOAqOAqOO\u0026sp=sig\u0026url=https://rr4---sn-uxa3vhnxa-nvje.googlevideo.com/videoplayback%3Fexpire%3D1683329429%26ei%3DNT1VZLmACIuJg8UPr8mu-Ac%26ip%3D182.2.39.127%26id%3Do......_5qg%253D%253D"
    

update adding more website from y2mate

© 2023 github.com/motebaya