= Strepi
An updated gem based on Mwhich
== INSTALLING STREPI
Strepi can be downloaded with
gem install 'strepi'
== DESCRIPTION
Strepi was made as an update to the now defunct MWhich[https://github.com/dacort/mwhich], which was no longer maintained because of the lack of a Netflix API. I was able to restore Netflix functionality to Strepi and add Crunchyroll[crunchyroll.com](Anime streaming website) service. Strepi checks to see if a movie/TV show is available on ITunes, Amazon, Crunchyroll, Netflix, or Amazon.
== HOW IT WAS DONE
This is how the data for each service was acessed
== REQUIREMENTS
Similar to MWhich, these gems are needed:
- yajl-ruby
- nokogiri
- ruby-hmac
== USING STREPI
To create a basic Strepi instance:
w = Strepi::Client.new
You can search for a movie like this:
w.search("The Prestige")
# => {:amazon=>[], :hulu=>[], :itunes=>["feature-movie: The Prestige ($9.99)"], :netflix=>[The Prestige is available!, :crunchyroll=>[]}
At this time, this merely returns a hash of key/value pairs indicating which
services the movie or TV show was found on. The value is a simple string with
the type of media found and the title. Comments specific to each service
may also appear. For example:
- Hulu sometimes links to external content, "Not on hulu!" will identify this.
- iTunes will display prices of product
Limit your searches by service:
w = Strepi::Client.new(:services => [:netflix, :hulu])
w.search("Knight Rider")
# => {:hulu=>["episode: I Love the Knight Life", "episode: Knight and the City", "episode: Fly By Knight", "episode: Fight Knight", "episode: Exit Light, Enter Knight", "episode: Knight to King's Pawn", "episode: Day Turns Into Knight", "episode: Don't Stop the Knight", "episode: Knight Fever", "episode: Knight of the Zodiac"], :netflix=>["Series: Knight Rider", "Series: Knight Rider"]}