Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Hulu download script

(http://stream-recorder.com/forum/showthread.php?t=11306)

svnpenn 03-23-2012 12:10 AM

Hulu download script


 
I created a very basic Ruby script to download from Hulu.

It only works for Windows right now.

Feel free to use and improve it.

github.com/svnpenn/dotfiles/blob/master/bin/hulu.rb

Stream Ripper 03-23-2012 12:54 AM

Re: Hulu download script


 
Awesome, thanks!

evol 03-23-2012 07:40 AM

ruby install???


 
Hi have you any hints and tips on installing ruby on windows to use your script ?

Ive installed rubyinstaller version 1.8.7 and the DevKit and ran
Code:

gem install nokogiri
&
Code:

gem install nokogiri --platform=ruby
Still cant get your script to work ?

:(

svnpenn 03-23-2012 11:05 AM

Re: ruby install???


 
I'm at work right now.

I will try to make a write up for the script later today!

evol 04-03-2012 02:49 PM

Re: Hulu download script


 
Any help on this please im really interested in this Ruby method.

Thanks :o

svnpenn 04-03-2012 02:54 PM

Re: Hulu download script


 
Sorry for the delay. I have been trying to turn the script into a Ruby gem, so that it is easier to install.

I am new with Ruby so its been slow going, but it definitely works with Hulu, without:

* modifying hosts file
* RtmpSrv
* RtmpExplorer

evol 04-05-2012 05:32 AM

Re: Hulu download script


 
Quote:

Originally Posted by svnpenn (Post 42926)
Sorry for the delay. I have been trying to turn the script into a Ruby gem, so that it is easier to install.

I am new with Ruby so its been slow going, but it definitely works with Hulu, without:

* modifying hosts file
* RtmpSrv
* RtmpExplorer

Thanks for the update ill look forward to your little gem :D

svnpenn 04-05-2012 10:00 AM

Re: Hulu download script


 
What issue did you have, maybe I can solve it for now.

evol 04-05-2012 03:13 PM

Re: Hulu download script


 
Quote:

Originally Posted by svnpenn (Post 43000)
What issue did you have, maybe I can solve it for now.

This is the error i get even though i have nokogiri installed from gem ?
Code:

C:\Documents and Settings\evol\Desktop\hulu>ruby hulu.rb
hulu.rb:4:in `require': no such file to load -- nokogiri (LoadError)
        from hulu.rb:4

C:\Documents and Settings\evol\Desktop\hulu>


svnpenn 04-05-2012 04:07 PM

Re: Hulu download script


 
Ok I see the problem

This script requires Ruby 1.9

If you are going to use Ruby 1.8 you need this diff

Code:

--- a/hulu.rb        2012-04-05 16:48:54 -0500
+++ b/hulu.rb        2012-04-05 17:02:56 -0500
@@ -1,6 +1,7 @@
 #!/bin/env ruby
 # nokogiri.org/Nokogiri/XML/Document
 # tenderlovemaking.com/2008/12/04/nokogiris-slop-feature
+require 'rubygems'
 require 'nokogiri'
 
 # Dump process and parse

stackoverflow.com/a/5496053


All times are GMT -6. The time now is 03:36 PM.