
Google Product Price Scraper
- knght/google-product-price-scraper
- Modified
- Users 10
- Runs 219
- Created by
Knight
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.
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'
{
"queries": [
"iPhone x"
]
}
EOF
# Run the Actor
curl "https://api.apify.com/v2/acts/knght~google-product-price-scraper/runs?token=$API_TOKEN" \
-X POST \
-d @input.json \
-H 'Content-Type: application/json'