Skip to content

BRN-SLP/Datahive-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Datahive Farm Bot

Automated farming and account management bot for Datahive.ai platform.

๐Ÿšจ CRITICAL UPDATE (v1.1.0): Mandatory Database Migration Required! If updating, you MUST run python migrate.py before starting the bot. See Database Migration section below.

โš ๏ธ Note: 10% of registrations support the developer through referral codes. Thank you for using this free software!


๐Ÿ’ป Requirements

Software Minimum Version Recommended
Python 3.9 3.11+
PostgreSQL 16 16+
Resource Notes
RAM Depends on accounts/threads. Start with 1GB
Disk 500MB+ (logs can grow)
Proxies HTTP/SOCKS5. Test which work for your region

๐Ÿš€ Installation

Linux (Ubuntu/Debian)

# Update & install packages
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl wget python3 python3-pip python3-venv

# PostgreSQL 16
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update && sudo apt install -y postgresql-16
sudo systemctl start postgresql && sudo systemctl enable postgresql

Create database:

sudo -u postgres psql
CREATE USER <YOUR_USER> WITH PASSWORD '<YOUR_PASSWORD>';
CREATE DATABASE <YOUR_DB> OWNER <YOUR_USER>;
GRANT ALL PRIVILEGES ON DATABASE <YOUR_DB> TO <YOUR_USER>;
\q

Install bot:

git clone https://github.com/BRN-SLP/Datahive-Bot.git
cd Datahive-Bot
python3 -m venv venv && source venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt

macOS / Windows

See VPS_SETUP.md for detailed instructions.


๐Ÿ”„ Database Migration (v1.1.0 Update)

If you are updating from an older version, you MUST run the migration script to add the last_initialized_at column to your database. This is required for the new daily initialization logic.

# Activate your environment
source venv/bin/activate

# Run the migration
python migrate.py

Note: If you are installing for the first time, this is not required (the table is created correctly automatically), but running it won't hurt.


โš™๏ธ Configuration

Edit config/config.yaml:

Database

application_settings:
  database_url: "postgres://<USER>:<PASSWORD>@localhost:5432/<DATABASE>"

Threading

threads:
  registration: 1   # MUST BE 1 (rate limit protection)
  farming: 100      # Parallel farming threads

Multiprocess Farming

multiprocess_farming:
  enabled: true       # Enable multiprocess mode
  max_processes: 3    # Number of processes (0 = auto)

Farm Settings

farm_settings:
  max_devices_per_batch: 600
  max_concurrent_tasks: 250
  device_task_timeout: 60

Referral Codes

referral_code_settings:
  source: "db"              # "db" = random from database
                            # "file" = random from referral_codes.txt
                            # "static" = use static_referral_code
  static_referral_code: ""  # Used when source: "static"

Delays & Retry

delay_before_start:
  min: 60
  max: 180

retry:
  delay_seconds: 10
  max_registration_attempts: 5
  proxy_rotation: true
  proxy_rotation_after_timeouts: 3  # Rotate proxy after N consecutive timeouts

Email Redirect (Optional)

redirect_settings:
  enable: false
  email: "your_email@gmail.com"
  password: "your_app_password"
  imap_server: "imap.gmail.com"

IMAP Settings

imap_settings:
  use_proxy_for_imap: false
  timeout: 30
  servers:
    gmail.com: imap.gmail.com
    icloud.com: imap.mail.me.com
    # ... more servers

๐Ÿ“ Data Files

Located in config/data/:

File Format
login_accounts.txt email:password (one per line)
farm_accounts.txt email (one per line, empty = all)
proxies.txt http://user:pass@host:port
referral_codes.txt code (one per line)
export_stats_accounts.txt email (one per line, empty = all)
wallets.txt private_key (Base58, one per line)
export.zip Apple Health Data Archive

๐ŸŽฏ Missions & Wallet Binding (V2)

The bot now supports automated wallet binding and lucrative missions (up to 20,500 points per account).

1. Solana Wallet Binding

The bot intercepts the Datahive wallet payload to securely sign transactions headless-ly via solders, without needing a browser or Phantom extension. Setup:

  1. Export the Private Key (in Base58 format) from your Phantom/Solflare wallets.
  2. Paste them into config/data/wallets.txt (one per line).
  3. The bot will automatically pull a random wallet from this list for each bound account.

2. Apple Health Mission (20,000 pts)

The bot uses a Memory-Safe Streaming XML Mutator to randomize your biometric data (heartbeat timestamps, step counts, etc.) on the fly. This ensures Datahive never detects duplicate uploads while keeping memory usage under 20MB. Setup:

  1. Export your real Apple Health data from your iPhone (Profile -> Export All Health Data).
  2. Rename the resulting file to exactly export.zip.
  3. Place this file inside the config/data/ directory.

3. Amazon Extension Mission (500 pts)

You do not need to install the Datahive Extension or log into Amazon. The bot actively accesses your local database to extract the device_id from your long-running farming workers. It then emulates the backend Extension API (intercepting ping and job payload queues) to convince Datahive that your worker is actively crawling Amazon, netting you the 500 points anonymously.


๐ŸŽฎ Usage

source venv/bin/activate
python main.py

Menu:

  • Login accounts - Register new accounts
  • Farm accounts - Start farming
  • Export stats - Export to CSV (results/stats/)
  • Clear proxies - Clear proxy assignments
  • Exit

For background running, see VPS_SETUP.md (tmux/screen).


๐Ÿ”ง Troubleshooting

Problem Solution
Database error Check PostgreSQL is running
Rate limit 429 Add more proxies
OTP not found Check IMAP settings

Made with โค๏ธ by BRN.SLP


โšก Performance Tuning

How Settings Work Together

Real parallelism = min(farming_threads ร— max_processes, max_concurrent_tasks)

Calculation Formula

Your Setup Formula Result
500 accounts ร— 2 devices = 1000 total devices
max_concurrent_tasks: 250 1000 รท 250 4 iterations

Recommended Settings by VPS Size

VPS Specs farming max_processes max_concurrent_tasks Best for
1 CPU / 1GB 50 1 50 Up to 200 accounts
2 CPU / 2GB 100 2 150 Up to 500 accounts
4 CPU / 4GB 100 3 300 Up to 1000 accounts
8+ CPU / 8GB+ 150 4-6 500 1000+ accounts

Example: 500 Accounts on 4 CPU / 4GB VPS

threads:
  registration: 1         # Always 1!
  farming: 100

multiprocess_farming:
  enabled: true
  max_processes: 3        # 3 parallel processes

farm_settings:
  max_devices_per_batch: 600
  max_concurrent_tasks: 300   # 100 ร— 3 = 300
  device_task_timeout: 60

Result: 100 threads ร— 3 processes = 300 parallel tasks

โš ๏ธ Important: registration must ALWAYS be 1 with delay โ‰ฅ60 seconds to avoid rate limits!

About

Automated farming bot for Datahive.ai. Multi-threaded, proxy support, and device fingerprinting.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages