Skip to main content

Slack Integration

Get scraping notifications and alerts in Slack.

Setup

  1. Create a Slack webhook URL:

  2. Configure webhook in Wryn:

result = client.scrape(
url="https://example.com",
options={
"webhook_url": "https://hooks.slack.com/services/YOUR/WEBHOOK/URL",
"webhook_events": ["completed", "failed"]
}
)

Notification Example

When a scrape completes, you'll receive:

✅ Scrape Completed
URL: https://example.com/product
Status: Success
Duration: 2.3s
View: https://wryn.io/scrapes/scr_123

Price Drop Alerts

def monitor_price():
result = client.scrape(
url="https://amazon.com/dp/B08N5WRWNW",
fields=["title", "price"]
)

current_price = float(result.data['price'].replace('$', ''))
if current_price < 199.99:
send_slack_alert(f"🎉 Price drop! {result.data['title']} now ${current_price}")

Next Steps