Google Product Price Scraper

  • knght/google-product-price-scraper
  • Modified
  • Users 10
  • Runs 219
  • Created by Author's avatarKnight

2 Step Google fast, dirty and low computation scraper that takes a single input then, simply returns a list of prices to use for multiple uses, intended purpose was to create a median price for the returned price list. Step 1 checks normal google results, Step 2 checks google shopping.

Free trial for 7 days

Then $20.00/month

No credit card required now

Google Product Price Scraper

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.

from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "queries": ["iPhone x"] }

# Run the Actor and wait for it to finish
run = client.actor("knght/google-product-price-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)