Learn R Programming

cablecuttr

An R wrapper for CanIStream.It API

CanIStream.It is a free service created by Urban Pixels that allows you to search across the most popular streaming, rental, and purchase services to find where a movie is available.

Installation

install.packages("cablecuttr")

To use the development version:

if ( !('devtools' %in% installed.packages()) ) install.packages("devtools")

devtools::install_github("bearloga/cablecuttr")

Usage

You can look up streaming/rental/purchase/etc. options for a movie by using can_i_stream_it(), which requires the movie's title and the media type:

can_i_stream_it("Love Actually", "streaming")
# Found more than one movie matching 'Love Actually'
# Defaulting to first result: Love Actually (2003) [4e79a720f5f8071e7e000000]
friendly_nameexternal_idpricedirect_urlshort_urllast_checked
Netflix Instant600312620http://dvd.netflix.com/Movie/Love-Actually/60031262http://canistream.it/link/go/5237a5b1f5f807362d0000002017-01-12 15:24:57

Behind the scenes, it uses find_movie() to fetch the movie's ID. In case of multiple matches, it defaults to the first result. You can call it directly:

find_movie("Toy Story")[, c("title", "year", "movie_id")]
titleyearmovie_id
Toy Story19954eb04731f5f807d30f000012
Toy Story 219994eb04731f5f807d30f000011
Toy Story of Terror!201352507c01f5f807682d000004
Toy Story of Terror!201352768d6951cf33b20f73791c
Toy Story That Time Forgot20145474f881a3f5ec3f71b6c06b
Toy Story 320104eb044b8f5f807167c00000e
A Syrian Love Story201555f8a7d2f5f807cd2cbb379f

And then pick a specific movie_id to give to can_i_stream_id():

# Toy Story (1995)
can_i_stream_id("4eb04731f5f807d30f000012", "rental")
friendly_nameexternal_idpricedirect_urlshort_urllast_checked
Amazon Video RentalB005ZMV2EQ2.99https://www.amazon.com/Toy-Story-Tim-Allen/dp/B005ZMV2EQhttp://canistream.it/link/go/4f1f34a7f5f807dd3d0000232017-01-12 11:38:23
Apple iTunes Rental1887038402.99https://itunes.apple.com/us/movie/toy-story/id188703840?uo=4&at=10lcsBhttp://canistream.it/link/go/4f1f34a8f5f807dd3d0000242017-01-12 11:38:25
Youtube Rentalc3986gGp3Qs2.99https://www.youtube.com/watch?v=c3986gGp3Qshttp://canistream.it/link/go/4f1b791cf5f807e74f0000262017-01-12 11:38:24
Google Play Rentalmovie-c3986gGp3Qs2.99https://play.google.com/store/movies/details/Toy_Story?id=c3986gGp3Qs&PAffiliateID=100l3vdhttp://canistream.it/link/go/4f47f373f5f807665b0000152017-01-12 11:38:24

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Copy Link

Version

Install

install.packages('cablecuttr')

Monthly Downloads

33

Version

0.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 13th, 2017

Functions in cablecuttr (0.1.1)

cablecuttr

cablecuttr: A CanIStream.It API Wrapper
find_movie

Search for movies by title
can_i_stream

Query CanIStream.It