https://github.com/weshatheleopard/rutube-downloader-ruby
https://github.com/weshatheleopard/rutube-downloader-ruby
ruby video-downloader
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/weshatheleopard/rutube-downloader-ruby
- Owner: weshatheleopard
- License: gpl-3.0
- Created: 2022-09-01T01:33:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-08T06:04:27.000Z (over 1 year ago)
- Last Synced: 2025-03-27T09:46:10.206Z (about 1 year ago)
- Topics: ruby, video-downloader
- Language: Ruby
- Homepage:
- Size: 138 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rutube-downloader-ruby
[](https://circleci.com/gh/weshatheleopard/rutube-downloader-ruby)
Download video files from the sites that generally don't want you to download videos from.
Currently supported:
* [Dzen](https://dzen.ru/) [NEW only]
* [Fox News](https://www.foxnews.com) [OLD only]
* [Twitch](https://www.twitch.tv/)
* [1TV](https://www.1tv.ru) [NEW only]
* [Platforma](https://plvideo.ru) [NEW only]
* [Rambler News](https://news.rambler.ru/video/)
* [RuTube](https://rutube.ru/)
* [Smotrim](https://smotrim.ru/)
* [TV Zvezda](https://tvzvezda.ru/)
Others can be added too through respective subclasses
## How to use:
Most downloaders have been moved to support both video file URL and main video page URL, which makes downloading more user-friendly. Old method still works.
### NEW mehod
#### Option 1 (shell):
1. In the system shell, execute `dl` script with the URL of the webpage where the video is located (`./dl http://video.site/breaking-news-654321`)
#### Option 2 (Ruby console):
1. Launch the console of this project (`rake console`)
2. Launch the code with the URL of the webpage where video is located (`dl 'http://video.site/breaking-news-654321'`)
### OLD method (still works!)
1. Start watching the desired video
2. Using Firefox's Developer Tools (invoked by F12), in the Network tab, set filter to "Media". Watch the .ts files being downloaded.
3. Copy the URL of any of such file
#### Option 1 (shell):
4. In the system shell, execute `dl` script with the URL obtained at the step above (`./dl http://......long_video_file_url......`)
#### Option 2 (Ruby console):
4. Launch the console of this project (`rake console`)
5. Launch the code with the URL obtained at the step above (`dl 'http://......long_video_file_url........'`)
The code will automatically detect the total number of segments in the video and download them all. It will also create the Windows BAT file for `ffmpeg` to join all these segments into a single video file.
#### Named parameters (console only):
* `start` - start downloading with this segment number
* `endno` - finish downloading with this segment number (otherwise perform automatic detection)
## File assembly
Result file can now be assembled from chunks on the system doing the downloading. In that case, `ffmpeg` has to be installed on that system:
`sudo apt-get install ffmpeg`
In that case, only the final file will be uploaded. This is controlled by the `combine:` named parameter of the call to `dl` in console.
Temporary files are now stored in `/tmp` and deleted upon successful uploading.