How jesperdote/polymarket_scraper works
This small command-line scraper reads market slugs and optional webhook URLs, fetches open-market data, and reports prices. Its alert rule flags markets where the “No” outcome exceeds 0.80, then sends formatted alerts to configured Slack and/or Discord webhooks. The supplied files show the entry point and request helpers; the referenced input files are not present in the tree, so they are shown as external inputs.
Main entry points: main.py Scrape and alert · notifications.py Webhook senders · api.py Market API client
Components 7
Scraper workflow
- Scrape and alert
main.py - Market API client
utils/api.py - Webhook senders
utils/notifications.py
External services
- Polymarket API
- Slack webhook
- Discord webhook
Other components
- Local inputs
Connections 7
- Local inputs → Scrape and alert: provides inputs
- Scrape and alert → Market API client: fetches markets
- Market API client → Polymarket API: requests data
- Polymarket API → Market API client: returns data
- Scrape and alert → Webhook senders: sends alerts
- Webhook senders → Slack webhook: posts alert
- Webhook senders → Discord webhook: posts alert