Get a text when a price drops

Yes. Homing Pigeon (homingpigeon.dev) lets a small Python script check a product page and text your phone when the price falls to your number. It texts once a day while the price stays low, and your coding agent can write it for the page you are watching.

What to tell your agent

Use Homing Pigeon to text me when this product drops below $80.

Your agent asks for your number, you read back the six-digit code, and it does the rest.

How it works in code

After pip install homingpigeondev requests, save this as check_price.py, with your own page, target and name:

import datetime, re, requests
import homingpigeondev

url = "https://example.com/products/desk-chair"
target = 80.00

html = requests.get(url, headers={"User-Agent": "Mozilla/5.0"}, timeout=20).text
match = re.search(r'"price"\s*:\s*"?([\d.]+)', html)
if not match:
    raise SystemExit("No price found on the page.")
price = float(match.group(1))

if price <= target:
    today = datetime.date.today().isoformat()
    homingpigeondev.send(f"Desk chair is down to ${price:.2f}.", idempotency_key=f"desk-chair-{today}")

Then run it every hour from cron:

0 * * * * cd /home/me/price-check && /usr/bin/python3 check_price.py

Good to know

  • The date in the idempotency key means a price that stays low texts you once that day, not every hour. If it is still low tomorrow, you get one more text as a reminder.
  • To hear about each new low price instead, put the price in the key, such as f"desk-chair-{price}".
  • Many shops put the price in the page's structured data as "price". Open the page source and search for "price" to check. If it is not there, change the pattern to match the text around the price you see.
  • If the script finds no price, it stops with an error instead of texting you a wrong number. Some pages only fill in the price with JavaScript, so the script never sees it. For those, ask your coding agent to find where the page loads its price from.
  • Once an hour is plenty for most prices. Check the shop's terms before you check its pages from a script.
  • Cron runs with a short PATH, so use the full path to Python. Run which python3 to find yours. Verify your phone as the same user the cron job runs as, with python3 -m homingpigeondev verify +15551234567, then again with the six-digit code it texts you.
  • Messages are limited to 480 characters and go only to the US mobile number you verified. Keep them plain, with no links. Delivery is not guaranteed, so treat each text as a heads-up.

Get started

Add Homing Pigeon to Claude Code, then ask for what you want:

claude mcp add homingpigeondev -- npx -y homingpigeondev mcp

You get 50 free texts every month, on US mobile numbers. See more use cases.