Scrape users from any GitHub repo, and automatically ingest into Clay.
- 
Click
Remixon the top-right to get a copy of it - 
Set up a Clay workbook with a
Webhookcolumn - 
Copy your Clay workbook's
WebhookURL - 
Set that as
CLAY_WEBHOOK_URLin this val'sEnvironment variableson the left sidebar - 
In main.ts, replace
GITHUB_REPOwith the full repository name (format:"owner/repo") - 
(Optional) Update the limits for
ISSUE_LIMIT,MAX_STARGAZERS,MAX_FORKS,MAX_COMMENTS_PER_ISSUE, andFETCH_REACTIONS - 
Navigate to main.ts and click "Run".
 
- clay.ts - Send data to Clay
 - github.ts - Collects engaged users and fetches usernames
 - main.ts - Cron trigger that orchestrates the scraping and Clay integration
 
On larger repos, you may get rate-limited by GitHub. To mitigate this, Val Town uses a proxied fetch that reroutes requests using a proxy vendor so that requests obtain different IP addresses. It also automatically retries failed requests several times.