Skip to main content

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:

1. Install the SDK

Install the Meter Python SDK:

2. Set up authentication

Store your API key securely as an environment variable:
Get your API key from the Meter dashboard. Never commit API keys to version control.

3. Generate your first strategy

Create a Python file and generate an extraction strategy:
What’s happening here:
  1. Meter’s AI analyzes the page structure
  2. Generates CSS selectors for extracting titles and scores
  3. Returns a preview of extracted data
  4. Saves the strategy for reuse (no LLM costs on future scrapes)

4. Run a scrape job

Use your saved strategy to run a scrape:
Jobs run asynchronously. The wait_for_job() method polls automatically until completion.

5. Set up monitoring

Schedule automatic scrapes to monitor for changes:
Now Meter will automatically scrape Hacker News every hour. You can check for changes using the pull-based API or set up webhooks.

6. Check for changes

Use the pull-based API to get changes:
Set mark_seen=False to preview changes without marking them as read.

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

Possible causes:
  • URL is not accessible
  • Description is too vague or complex
  • Page requires authentication
Solutions:
  • 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
Possible causes:
  • Target website is slow or down
  • Strategy is incorrect
Solutions:
  • 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
Problem: ModuleNotFoundError: No module named 'meter_sdk'Solution: Install the SDK: pip install meter-sdk
Problem: 401 UnauthorizedSolutions:
  • Verify your API key is correct
  • Check that METER_API_KEY environment variable is set
  • Ensure your API key hasn’t expired

Need help?

Email me at mckinnon@meter.sh