Skip to content

deepdadou/bounty-hunter

Repository files navigation

🎯 Full Autonomous Bounty-Hunting Agent

目标金额: 1M $FNDRY (≈$1,000-$5,000)
完成时间: 1-2 周
类型: AI Agent 系统 - 全自动 bounty 狩猎


📋 需求分析

核心功能

  1. 自动发现 bounty - 扫描多个平台的 bounty 机会
  2. 智能筛选 - 根据技能、时间、金额自动筛选合适的 bounty
  3. 自动申请 - 生成申请材料并提交
  4. 进度跟踪 - 监控已申请 bounty 的状态
  5. 多平台集成 - GitHub, Superteam, Gitcoin, Cantina 等

技术栈

  • 主语言: Python 3.10+
  • AI 集成: OpenAI API / Dashscope (Qwen)
  • 浏览器自动化: Playwright / Selenium
  • 任务调度: APScheduler / Celery
  • 数据存储: SQLite + JSON
  • 通知系统: 微信/钉钉/邮件

🏗️ 系统架构

┌─────────────────────────────────────────────────────────────┐
│                    Bounty Hunter Agent                       │
├─────────────────────────────────────────────────────────────┤
│                                                              │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐       │
│  │   Scraper    │  │   Analyzer   │  │   Applier    │       │
│  │   Module     │  │   Module     │  │   Module     │       │
│  │              │  │              │  │              │       │
│  │ - GitHub     │  │ - 技能匹配    │  │ - 自动生成    │       │
│  │ - Superteam  │  │ - 时间评估    │  │   申请材料    │       │
│  │ - Gitcoin    │  │ - 竞争分析    │  │ - 自动提交    │       │
│  │ - Cantina    │  │ - 优先级排序  │  │ - 进度跟踪    │       │
│  └──────────────┘  └──────────────┘  └──────────────┘       │
│                                                              │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐       │
│  │   Config     │  │   Database   │  │  Scheduler   │       │
│  │   Module     │  │   Module     │  │   Module     │       │
│  │              │  │              │  │              │       │
│  │ - API Keys   │  │ - Bounty     │  │ - 定时扫描   │       │
│  │ - 技能配置    │  │   存储       │  │ - 定期申请   │       │
│  │ - 平台配置    │  │ - 申请记录   │  │ - 提醒通知   │       │
│  └──────────────┘  └──────────────┘  └──────────────┘       │
│                                                              │
└─────────────────────────────────────────────────────────────┘

📁 项目结构

bounty-hunter/
├── README.md                 # 项目说明
├── requirements.txt          # Python 依赖
├── config.yaml              # 配置文件
├── main.py                  # 主入口
│
├── src/
│   ├── __init__.py
│   ├── scraper/
│   │   ├── __init__.py
│   │   ├── github_scraper.py
│   │   ├── superteam_scraper.py
│   │   ├── gitcoin_scraper.py
│   │   └── base_scraper.py
│   │
│   ├── analyzer/
│   │   ├── __init__.py
│   │   ├── bounty_analyzer.py
│   │   ├── skill_matcher.py
│   │   └── priority_scorer.py
│   │
│   ├── applier/
│   │   ├── __init__.py
│   │   ├── application_generator.py
│   │   ├── github_applier.py
│   │   └── email_applier.py
│   │
│   ├── database/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   └── db_manager.py
│   │
│   ├── notifier/
│   │   ├── __init__.py
│   │   ├── wechat_notifier.py
│   │   └── email_notifier.py
│   │
│   └── utils/
│       ├── __init__.py
│       ├── logger.py
│       └── helpers.py
│
├── tests/
│   ├── __init__.py
│   ├── test_scraper.py
│   └── test_analyzer.py
│
└── logs/

🚀 开发计划

Phase 1: 基础框架 (Day 1-2)

  • 项目结构搭建
  • 配置文件设计
  • 数据库模型设计
  • 日志系统

Phase 2: Scraper 模块 (Day 3-5)

  • GitHub scraper (bounty labels)
  • Superteam scraper
  • 基础 scraper 抽象类

Phase 3: Analyzer 模块 (Day 6-8)

  • 技能匹配算法
  • 优先级评分系统
  • AI 辅助分析

Phase 4: Applier 模块 (Day 9-11)

  • 申请材料生成
  • GitHub 自动提交
  • 邮件自动发送

Phase 5: 集成与测试 (Day 12-14)

  • 调度器集成
  • 通知系统集成
  • 端到端测试
  • 文档完善

💡 核心算法

优先级评分公式

score = (amount * 0.4) + (skill_match * 0.3) + (time_fit * 0.2) + (competition_low * 0.1)

其中:
- amount: 赏金金额 (归一化到 0-1)
- skill_match: 技能匹配度 (0-1)
- time_fit: 时间适配度 (0-1)
- competition_low: 竞争程度倒数 (0-1)

技能匹配逻辑

skills_required = ['Python', 'JavaScript', 'React', ...]
skills_agent = ['Python', 'Node.js', 'AI Agent', ...]

match_score = len(intersection) / len(union)

🔑 配置示例

# config.yaml

agent:
  name: "Bounty Hunter"
  skills:
    - Python
    - Node.js
    - AI Agent
    - Web Scraping
    - Smart Contracts
  available_hours_per_week: 40
  
platforms:
  github:
    enabled: true
    api_token: "${GITHUB_TOKEN}"
    bounty_labels:
      - bounty
      - paid
      - hackathon
  superteam:
    enabled: true
    min_amount_usd: 200
  gitcoin:
    enabled: false  # 需要 API
    
notifications:
  wechat:
    enabled: true
    webhook: "${WECHAT_WEBHOOK}"
  email:
    enabled: false
    
schedule:
  scan_interval_hours: 6
  apply_max_per_day: 5

📊 预期收益

平台 月申请数 成功率 平均金额 月收入
GitHub 20 15% $500 $1,500
Superteam 10 20% $800 $1,600
Gitcoin 5 10% $1000 $500
总计 35 15% $650 $3,600

月收入预期: $3,000-$5,000
回本时间: 1-2 周


⚠️ 风险与应对

风险 影响 应对策略
API 限制 使用代理、降低频率
账号封禁 人工审核关键步骤
竞争加剧 提高申请质量
平台规则变化 模块化设计,快速适配

下一步: 使用 Codex 分模块实现代码

About

Autonomous Bounty Hunting Agent - Multi-platform scanner with AI-powered analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages