hrbrmstr / omdbapi Goto Github PK
View Code? Open in Web Editor NEWR package to access the OMDB API (http://www.omdbapi.com/)
License: Other
R package to access the OMDB API (http://www.omdbapi.com/)
License: Other
Hi,
Whats the license model of your code?
Thanks and best regards,
Tee
If you have an API key is there a way to modify the functions to include it? A request now looks like this:
http://www.omdbapi.com/?i=tt3896198&apikey=209e906d
I would imagine it is just another parameter that can be added to all the functions in this package that accepts an API key then adds that to the URL when building. Thanks.
For some reason, omdbapi sometimes returns an empty value for the Ratings field (probably a bug on their side). But when this happens, this library's functions throw the following error:
Error: Column 'Ratings' must be length 1, not 0
Can be handled more gracefully? It is still interesting to get all the other fields as a result.
Example call:
find_by_id('tt6911608', type='movie', include_tomatoes = TRUE)
Omdb api response:
{"Title":"Mamma Mia! Here We Go Again","Year":"2018","Rated":"PG-13","Released":"20 Jul 2018","Runtime":"114 min","Genre":"Comedy, Musical","Director":"Ol Parker","Writer":"Ol Parker (screenplay by), Richard Curtis (story by), Ol Parker (story by), Catherine Johnson (story by), Judy Craymer (originally conceived by), Catherine Johnson (based on the original musical by)","Actors":"Lily James, Amanda Seyfried, Meryl Streep, Dominic Cooper","Plot":"In this sequel to Mamma Mia!, Sophie learns about her mother's past while pregnant herself.","Language":"English","Country":"UK, USA","Awards":"N/A","Poster":"https://m.media-amazon.com/images/M/MV5BMjEwMTM3OTI1NV5BMl5BanBnXkFtZTgwNDk5NTY0NTM@._V1_SX300.jpg","Ratings":[],"Metascore":"N/A","imdbRating":"N/A","imdbVotes":"N/A","imdbID":"tt6911608","Type":"movie","DVD":"N/A","BoxOffice":"N/A","Production":"Universal Pictures","Website":"N/A","Response":"True"}
I'm guessing the issue is in using dplyr::as_data_frame
on the following line:
Line 89 in 5937753
search_by_title("Captain America")
Error in search_by_title("Captain America") : Unauthorized (HTTP 401).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.