Quick Start
This guide will get you up and running with Meter in under 5 minutes. You’ll generate an extraction strategy, run your first scrape, and set up monitoring.Prerequisites:
- Python 3.8 or later
- A Meter account (sign up here)
- Your API key from the dashboard
1. Install the SDK
Install the Meter Python SDK:2. Set up authentication
Store your API key securely as an environment variable:3. Generate your first strategy
Create a Python file and generate an extraction strategy:- Meter’s AI analyzes the page structure
- Generates CSS selectors for extracting titles and scores
- Returns a preview of extracted data
- Saves the strategy for reuse (no LLM costs on future scrapes)
4. Run a scrape job
Use your saved strategy to run a scrape:wait_for_job() method polls automatically until completion.
5. Set up monitoring
Schedule automatic scrapes to monitor for changes:6. Check for changes
Use the pull-based API to get changes:Complete example
Here’s the complete code:Next steps
Core Concepts
Learn about strategies, jobs, and schedules
RAG Integration
Connect Meter to your vector database
Webhooks
Set up real-time notifications
Python SDK Reference
Explore all SDK methods
Troubleshooting
Strategy generation failed
Strategy generation failed
Possible causes:
- URL is not accessible
- Description is too vague or complex
- Page requires authentication
- Verify the URL loads in your browser
- Make your description more specific: “Extract product names and prices from the grid” instead of “Get products”
- For auth-required pages, contact support
Job timeout
Job timeout
Possible causes:
- Target website is slow or down
- Strategy is incorrect
- Increase timeout:
client.wait_for_job(job_id, timeout=300) - Check job status manually:
client.get_job(job_id) - Refine strategy if results are incorrect
Import error
Import error
Problem:
ModuleNotFoundError: No module named 'meter_sdk'Solution: Install the SDK: pip install meter-sdkAuthentication error
Authentication error
Problem:
401 UnauthorizedSolutions:- Verify your API key is correct
- Check that
METER_API_KEYenvironment variable is set - Ensure your API key hasn’t expired