{"id":21201661,"url":"https://github.com/oleander/movies","last_synced_at":"2025-07-10T06:31:47.961Z","repository":{"id":56884621,"uuid":"1682873","full_name":"oleander/Movies","owner":"oleander","description":"Ruby bindings for IMDb using imdbapi.com as source","archived":false,"fork":false,"pushed_at":"2011-12-08T22:07:41.000Z","size":138,"stargazers_count":21,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T15:15:32.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/oleander/Movies","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oleander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-04-29T22:19:00.000Z","updated_at":"2019-08-13T14:44:46.000Z","dependencies_parsed_at":"2022-08-20T23:40:41.998Z","dependency_job_id":null,"html_url":"https://github.com/oleander/Movies","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2FMovies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2FMovies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2FMovies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2FMovies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleander","download_url":"https://codeload.github.com/oleander/Movies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225622846,"owners_count":17498168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T20:10:23.580Z","updated_at":"2024-11-20T20:10:24.032Z","avatar_url":"https://github.com/oleander.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Movies\n\n*Movies* is the bridge between IMDb's unofficial API; [imdbapi.com](http://imdbapi.com/) and Ruby.\n\nFollow me on [Twitter](http://twitter.com/linusoleander) or [Github](https://github.com/oleander/) for more info and updates.\n\n## How to use\n\n### Search for a title\n\n```` ruby\nMovies.find_by_title(\"The dark night\")\n````\n\n### Find movie based on an IMDb id\n\n```` ruby\nMovies.find_by_id(\"tt0337978\")\n````\n\n### Find by release name\n\nThis method will try to filter out as much irrelevant data as possible using [this exclude list](https://github.com/oleander/Movies/blob/master/lib/movies/exclude.yml), before doing a request to the server.\nIt will also try to find a release year in the title, which will be passed to [imdbapi.com](http://imdbapi.com/).\n\n```` ruby\nMovies.find_by_release_name(\"Heartbreaker.2010.LIMITED.DVDRip.XviD-SUBMERGE\")\n````\n\nThe *snippet* above will pass the following data to the server.\n\n```` ruby\nMovies.find_by_title(\"Heartbreaker\", {\n  y: \"2010\"\n})\n````\n\n## Settings\n\nYou can pass some arguments if you for example want to search for a particular year.\n\n```` ruby\nMovies.find_by_title(\"The dark night\", {\n  y: \"2010\"\n})\n````\n\nThese params are supported.\n\n- **y** (*Any number*) Year of the movie.\n- **plot** (*short, full*) Short or extended plot (short default).\n- **tomatoes** (*Boolean*) Adds rotten tomatoes data.\n\n## Rottentomatoes\n\n```` ruby\nmovie = Movies.find_by_title(\"Die Hard 4.0\", {\n  tomatoes: \"true\"\n})\n\nmovie.tomato.meter\n# =\u003e 82\nmovie.tomato.image\n# =\u003e \"certified\"\nmovie.tomato.rating\n# =\u003e 6.8\nmovie.tomato.reviews\n# =\u003e 198\nmovie.tomato.fresh\n# =\u003e 162\nmovie.tomato.rotten\n# =\u003e 36\n````\n\n## Data to work with\n\nThese accessors are available for the object that is being returned from the `find_by_*` methods.\n\n- **year** (*Fixnum*) Year of the movie.\n- **released** (*Date*) Release date.\n- **writers** (*Array \u003c String \u003e*) Writers.\n- **actors** (*Array \u003c String\u003e*) Actors.\n- **director** (*String*) Name of director.\n- **rating** (*Float*) Rating from 1.0 to 10.0.\n- **votes** (*Float*) Number of votes.\n- **runtime** (*Fixnum*) Run time in seconds.\n- **href** (*String*) IMDb url.\n- **id** (*String*) IMDb id.\n- **poster** (*String*) Url to poster.\n- **found?** (*Boolean*) Where anything found?\n\n## How to install\n\n    [sudo] gem install movies\n\n## Requirements\n\n*Movies* is tested in *OS X 10.6.7* using Ruby *1.9.2*.\n\n## License\n\n*Movies* is released under the *MIT license*.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fmovies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleander%2Fmovies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fmovies/lists"}