Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrianmarino/ruby-keyfinder
Youtube videos key detectition
https://github.com/adrianmarino/ruby-keyfinder
Last synced: 1 day ago
JSON representation
Youtube videos key detectition
- Host: GitHub
- URL: https://github.com/adrianmarino/ruby-keyfinder
- Owner: adrianmarino
- Created: 2014-12-31T15:49:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-11T01:42:47.000Z (almost 9 years ago)
- Last Synced: 2023-02-27T13:46:48.377Z (almost 2 years ago)
- Language: Ruby
- Homepage:
- Size: 54.8 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby Key Finder
This program allow determinate the key of a youtube video by the id of the video.
Look at the next test, to understand how it works:```Ruby
class KeyFinderServiceTest < Test::Unit::TestCase
def test_get_key_a_ha_take_on_me_video
# Prepare
video_hash = 'djV11Xbc914'# Perform
key = CONTEXT.key_finder.key_of(video_hash)# Assert
assert_equal 'E', key
end
end
```# Requisites
1. Install wine emulator:
* Debian:
```
$ sudo apt-get install wine
```
* Arch:
```
$ pacman -S wine
```
2. Fix youtube_dl gem runing next command:
```
$ ./fix_youtube_dl_gem
```
3. Run:
```
./download_keyfinder
```To fast requisites installation run (Only for Debian):
```
$ ./install_requisites
```# Test
Run test:
```
$ rake
```# License
ruby-keyfinder is released under the [MIT License](http://www.opensource.org/licenses/MIT).