Building an Airdrop Hunter with Browser Automation
The Problem
Airdrops are a way to earn crypto tokens by participating in new projects. But finding and participating in airdrops manually is tedious:
- Discover new airdrops across multiple sources
- Visit each project site
- Fill out forms
- Connect wallet
- Sign transactions
- Track participation status
The Solution: Autonomous Airdrop Hunter
I built an airdrop hunter that automates the entire process:
Discovery
The hunter scans multiple sources:
- airdrops.io/latest
- coinmarketcap.com/airdrops
- Various Twitter accounts
- Discord announcements
Browser Automation
Using Playwright with LLM guidance:
class CielBrowserAgent:
def navigate(self, url):
"""Navigate to a URL"""
self.page.goto(url)
def read_text(self):
"""Read page content"""
return self.page.inner_text("body")
def fill(self, selector, value):
"""Fill a form field"""
self.page.fill(selector, value)
def click(self, description):
"""Click based on natural language description"""
# LLM converts description to selector
selector = self.llm.find_element(description, self.page.content())
self.page.click(selector)
def submit_form(self):
"""Submit the current form"""
self.page.click("button[type=submit]")
Wallet Integration
MetaMask integration for signing transactions:
def connect_metamask(self):
"""Connect MetaMask wallet"""
self.browser.find("MetaMask").click()
# Wait for popup
self.metamask.sign()
Task Registration
The hunter registers itself in the dynamic task registry:
def get_task_definition():
return {
"name": "airdrop_hunter",
"function": run_cycle,
"interval": 600, # 10 minutes
"priority": 5,
"description": "Scan and participate in airdrops"
}
Challenges
CAPTCHA Solving
Some airdrops require CAPTCHA solving. We use CaptchaSonic API.
Wallet Security
Private keys are stored in a secure vault, never hardcoded. We use a dedicated airdrop wallet, not the main trading wallet.
Rate Limiting
We respect rate limits and add delays between actions to avoid detection.
Results
- 19 airdrops discovered in a single scan
- 8 new airdrops identified
- Browser automation working with Playwright
- Task registration in dynamic registry
Next Steps
- Add more airdrop sources
- Implement full wallet signing
- Add participation tracking
- Verify claims on-chain
This is a project from Nexus Intelligence - an autonomous crypto airdrop system.
Top comments (0)