{"id":31814463,"url":"https://github.com/hooshid/rottentomatoes-scraper","last_synced_at":"2025-10-11T08:50:49.019Z","repository":{"id":44928306,"uuid":"483368482","full_name":"hooshid/rottentomatoes-scraper","owner":"hooshid","description":"Rottentomatoes scraper for PHP","archived":false,"fork":false,"pushed_at":"2025-09-26T08:46:35.000Z","size":67,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-04T00:34:05.864Z","etag":null,"topics":["php","rottentomatoes","rottentomatoes-metadata","rottentomatoes-scraper","rottentomatoes-scraping","rottentomatoes-webscrapping","scraper","scraping"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hooshid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-19T18:43:12.000Z","updated_at":"2025-09-26T08:46:38.000Z","dependencies_parsed_at":"2025-02-09T10:23:29.937Z","dependency_job_id":"e6b68ff3-300c-42dc-a6f3-e016fb218335","html_url":"https://github.com/hooshid/rottentomatoes-scraper","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.02857142857142858,"last_synced_commit":"bed9695677259e60a9269b9be0871fc7aef997ae"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/hooshid/rottentomatoes-scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hooshid%2Frottentomatoes-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hooshid%2Frottentomatoes-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hooshid%2Frottentomatoes-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hooshid%2Frottentomatoes-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hooshid","download_url":"https://codeload.github.com/hooshid/rottentomatoes-scraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hooshid%2Frottentomatoes-scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006638,"owners_count":26084150,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["php","rottentomatoes","rottentomatoes-metadata","rottentomatoes-scraper","rottentomatoes-scraping","rottentomatoes-webscrapping","scraper","scraping"],"created_at":"2025-10-11T08:50:46.810Z","updated_at":"2025-10-11T08:50:49.014Z","avatar_url":"https://github.com/hooshid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rottentomatoes Scraper\n\n\u003ca href=\"https://github.com/hooshid/rottentomatoes-scraper/actions\"\u003e\u003cimg src=\"https://github.com/hooshid/rottentomatoes-scraper/actions/workflows/tests.yml/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/hooshid/rottentomatoes-scraper\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/hooshid/rottentomatoes-scraper\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/hooshid/rottentomatoes-scraper\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/hooshid/rottentomatoes-scraper\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/hooshid/rottentomatoes-scraper\" alt=\"License\"\u003e\u003c/a\u003e\n\nUsing this Rottentomatoes API, you are able to search, browse and extract data of Movies, Series on rottentomatoes.com.\n\n## Install\nThis library scrapes rottentomatoes.com so changes their site can cause parts of this library to fail. You will probably need to update a few times a year.\n\n### Requirements\n* PHP \u003e= 8.0\n* PHP cURL extension\n\n### Install via composer\n``` bash\n$ composer require hooshid/rottentomatoes-scraper\n```\n\n## Run examples\nThe example gives you a quick demo to make sure everything's working, some sample code and lets you easily see some available data.\n\nFrom the example folder in the root of this repository start up php's inbuilt webserver and browse to [http://localhost:8000/example]()\n\n`php -S localhost:8000`\n\n## Examples\n\n### Get movie/series data\n#### Movie: The Matrix (1999) / URL: https://www.rottentomatoes.com/m/matrix\n``` php\n$rottentomatoes = new Hooshid\\RottentomatoesScraper\\Rottentomatoes();\n$extract = $rottentomatoes-\u003eextract(\"/m/matrix\");\n$result = $extract['result'];\n$error = $extract['error'];\n\n// get all available data as json\necho json_encode($extract);\n```\nin above example we first create a new obj from Rottentomatoes() class, then we call extract method and give the rottentomatoes.com url in first param.\n\nif everything ok, result key filled and if not, the error key filled with error occurred\n\n\n#### Tv Series: Game of Thrones (2011-2019) / URL: https://www.rottentomatoes.com/tv/game_of_thrones\n``` php\n$rottentomatoes = new Hooshid\\RottentomatoesScraper\\Rottentomatoes();\n$extract = $rottentomatoes-\u003eextract(\"/tv/game_of_thrones\");\n$result = $extract['result'];\n$error = $extract['error'];\n\nif ($error) {\n    echo $error;\n} else {\n    echo $result['title']; // movie/series title\n    echo $result['thumbnail']; // Poster thumbnail\n    echo $result['summary']; // Summary\n    \n    echo $result['score']; // Score\n    echo number_format($result['votes']); // Votes\n    echo $result['user_score']; // User Score\n    echo number_format($result['user_votes']); // User Votes\n}\n```\nyou must always catch error first and get results.\n\nNOTE: you can pass full url of Rottentomatoes or just path of page\n``` php\nextract(\"https://www.rottentomatoes.com/m/matrix\");\nextract(\"/m/matrix\");\n```\nthe result same for both extract methods!\n\n\n### Search\n\n``` php\n$rottentomatoes = new Hooshid\\RottentomatoesScraper\\Rottentomatoes();\n$result = $rottentomatoes-\u003esearch(\"The Matrix\", \"movie\");\n\nif($result['result']) {\n    foreach ($result['result'] as $row) {\n        echo $row['thumbnail'];\n        echo $row['title'];\n        echo $row['full_url'];\n        echo $row['title']; \n        echo $row['year'];\n        echo $row['score']; \n        echo $row['user_score']; \n        echo $row['type'];\n    }\n} else {\n    echo \"Not found any result!\";\n}\n```\nsearch method always return result key, and you just need to looped and used.\nsearch method have two param, first the title of movie or series to search and second the type, type just can be movie or tv.\n\n### Celebrity\n\n``` php\n$rottentomatoes = new Hooshid\\RottentomatoesScraper\\Rottentomatoes();\n$result = $rottentomatoes-\u003ecelebrity(\"johnny_depp\");\n\nif($result['result']) {\n    echo $result['result']['name'];\n    echo $result['result']['full_url'];\n    echo $result['result']['url_slug'];\n    echo $result['result']['thumbnail'];\n    // Movies : array\n    foreach ($result['result']['movies'] as $row) {\n        echo $row['title'];\n        echo $row['url'];\n        echo $row['year'];\n        echo $row['tomatometer'];\n        echo $row['audiencescore'];\n    }\n    // Series : array\n    foreach ($result['result']['series'] as $row) {\n        echo $row['title'];\n        echo $row['url'];\n        echo $row['year'];\n        echo $row['tomatometer'];\n        echo $row['audiencescore'];\n    }\n} else {\n    echo \"Not found!\";\n}\n```\n\n### Full examples\njust open the example folder, we put all examples and methods demo for you in there!\n\n## Related projects\n* [IMDb Scraper](https://github.com/hooshid/imdb-scraper)\n* [Metacritic Scraper](https://github.com/hooshid/metacritic-scraper)\n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhooshid%2Frottentomatoes-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhooshid%2Frottentomatoes-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhooshid%2Frottentomatoes-scraper/lists"}