iamfnd / vimeo_downloader

Vimeo Downloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I wrote this up for fun, to try to convert the bash script by Denver Gingerich and Jori Hamlainen to ruby.

VimeoDownloader can download vimeo rss feeds or individual videos.

It keeps track of downloaded videos in a very simple yaml file: downloaded_videos.yml

The RSS parsing is nothing fancy.

The only gem dependency is httparty.

It also requires ruby and wget. I'm using ruby 1.8.7

It is incomplete in a number of ways, but is functional

#Usage

    v = VimeoDownloader.new

For a single video

    v.download_video video_string

Or from the command line

    ruby vimeo_downloader.rb video video_string

video_string can be either 'http://vimeo.com/VIDEO_ID' or just 'VIDEO_ID'

For a vimeo video rss feed

    v.download_video_feed feed

Or from the command line

    ruby vimeo_downloader.rb feed feed_url

where feed_url is an rss feed of vimeo video links

Or copy vimeo_task.rb.example to vimeo_task.rb and customize for batch jobs

VimeoDownloader released under the MIT license.

Copyright (C) 2011 by Benjamin Fleischer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN




License of the original bash script:
http://ossguy.com/?p=841

# Vimeo Downloader
#
# Copyright (C) 2008, 2010  Denver Gingerich
# Copyright (C) 2009  Jori Hamalainen
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.


About

Vimeo Downloader