Rotten Extractor

  • binhbui/rotten-extractor
  • Modified
  • Users 1
  • Runs 51
  • Created by Author's avatarBinh Bui

You can extract information about movies and actors that are listed on the Rotten Tomatoes website using this actor. Each movie has different metadata such as Rating, Genre, Box Office, Studio, and Scores. These metadata can be helpful for many data science projects.

Free trial for 7 days

Then $20.00/month

No credit card required now

Rotten Extractor

Free trial for 7 days

Then $20.00/month

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare Actor input
cat > input.json <<'EOF'
{
  "startUrls": [
    {
      "url": "https://www.rottentomatoes.com/browse/movies_in_theaters/ratings:nc_17,pg,pg_13,r~sort:popular"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxItems": 1000,
  "extendOutputFunction": "($, item) => { return {} }"
}
EOF

# Run the Actor
curl "https://api.apify.com/v2/acts/binhbui~rotten-extractor/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'