can_i_stream: Query CanIStream.It

Description Usage Arguments Details Value Functions Examples

Description

Searches for the movie's availability on various online services/stores.

Usage

1
2
3
4
5
can_i_stream_id(movie_id, media_type = c("streaming", "rental", "purchase",
  "dvd", "xfinity"), user_agent = NULL, offline = FALSE)

can_i_stream_it(movie_name, media_type = c("streaming", "rental", "purchase",
  "dvd", "xfinity"), user_agent = NULL)

Arguments

movie_id

The movie's ID, found by running find_movie

media_type

The type to search for:

streaming

Subscription based and free instant streaming services.

rental

Services that offer time limited rentals (24-48 hours) for a small fee.

purchase

Services that offer the ability to purchase a movie forever.

dvd

Services that allow you to purchase or rent a physical dvd/blu-ray disc.

xfinity

Cable Subscription services with online viewing brought to you by Xfinity.

user_agent

Allows specification of custom UA

offline

A logical flag to simulate the API request

movie_name

The movie's name, which will be passed to find_movie

Details

The API is a bit slow/unreliable, so if you get a HTTP 504 error, just re-run the call.

Value

A data.frame with a row for each service/store and the following columns:

friendly_name

The name of the service/store

external_id

The ID of the movie/show

price

The movie's price on the service/store

direct_url

The URL of the movie on the service/store

short_url

The CanIStream.It URL that redirects to service/store

last_checked

The datetime the service was last checked

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
can_i_stream_id("4eb0173df5f8079d29000002", "purchase")
## Not run: 
  movie_id <- find_movie("The Babadook")$movie_id
  can_i_stream_id(movie_id, "streaming")

## End(Not run)
## Not run: 
  can_i_stream_it("Tinker Tailor Soldier Spy")

## End(Not run)

cablecuttr documentation built on May 29, 2017, 8:05 p.m.