How do I get notified when my scraper finishes?
Add one requests.post to Lert at the end of your script. Download the app, copy your link, and drop a single line after the last row is saved — your phone buzzes when the run ends. No account, no API keys, no SDK.
Long scrapes are exactly the thing you shouldn't babysit. Instead of refreshing a terminal, add a single line that pings your phone when the job is done — and, if it crashes, when it fails. Because your Lert link is the credential, there's no client library to install and no key to load from the environment; you just POST to a URL.
The entire setup — under 30 seconds
- Download the app. Open it once. There's no account to create, and your private link is waiting on screen.
- Copy your link. One tap copies something like
https://lert.dev/p/your-id. - Add the POST. Put
requests.postafter your scrape loop, and optionally in anexceptblock so failures ping too.
Then your phone buzzes — instantly, even locked in your pocket.
The Python
import requests LERT = "https://lert.dev/p/your-id" def notify(title, body): requests.post(LERT, json={"title": title, "body": body, "tag": "scraper"}) try: rows = run_scraper() # your existing code notify("Scrape done", f"Saved {len(rows)} rows") except Exception as e: notify("Scrape failed", str(e)) raise
The try/except means you hear about a clean finish and a crash, with the row count or the error right in the notification. No headers to set beyond the JSON body, and nothing to authenticate.
Works the same for any script. A data pipeline, a batch export, an ML training run — anything with a start and an end can finish on one line that buzzes your phone.
Related things people automate
- Send yourself a reminder from a script
- Get pinged when a price hits a target
- The easiest way to notify from anywhere
- Long-running script notifications
- Notify when a scheduled job runs
It's free for one channel and 50 notifications a day; Lert Pro is $2.99/month for unlimited. See the docs for the full API, or the answers index for more recipes.
Send your first one in 30 seconds.
Download Lert, copy your link, POST to it. Your phone buzzes.