A simplified Flask application for managing automated Airtasker comments.
- Manage Airtasker accounts
- Define target cities and radius
- Create and store message templates
- Schedule automated commenting
- View detailed activity logs
- Simple JSON-based storage (no database required)
- Selenium-based automation with CAPTCHA solving
.
├── app/ # Application package
│ ├── __init__.py # App factory
│ ├── automations/ # Automation scripts
│ │ ├── main.py # Main selenium automation
│ │ └── comments.py # Comment automation
│ ├── static/ # Static files (CSS, JS)
│ │ ├── css/
│ │ │ └── styles.css
│ │ ├── js/
│ │ │ └── scripts.js
│ │ └── uploads/ # Image uploads directory
│ ├── templates/ # Jinja2 templates
│ │ ├── base.html # Base template
│ │ ├── accounts.html # Account management
│ │ ├── cities.html # City management
│ │ ├── dashboard.html # Main dashboard
│ │ ├── logs.html # Activity logs
│ │ ├── messages.html # Message templates
│ │ └── schedules.html # Scheduling
│ ├── data_manager.py # JSON data storage
│ ├── forms.py # Form definitions
│ ├── routes.py # Route handlers
│ └── tasks.py # Background task handling
├── config.py # Configuration settings
├── data/ # JSON data storage directory
├── run.py # Application entry point
├── requirements.txt # Project dependencies
├── .env # Environment variables (optional)
└── README.md # This documentation
- Python 3.7 or later
- Chrome browser (for Selenium automation)
-
Clone this repository:
git clone https://github.com/yourusername/airtasker-bot.git cd airtasker-bot -
Create a virtual environment:
python -m venv venv -
Activate the virtual environment:
- Windows:
venv\Scripts\activate - Unix/MacOS:
source venv/bin/activate
- Windows:
-
Install dependencies:
pip install -r requirements.txt -
Run the application:
python run.pyOr with Flask:
export FLASK_APP=run.py export FLASK_ENV=development flask run -
Access the application at
http://localhost:5000
The application uses a simple JSON-based storage system that doesn't require a database. All data is stored in JSON files in the data/ directory.
You can customize the application by creating a .env file:
FLASK_APP=run.py
FLASK_ENV=development
SECRET_KEY=your-secret-key
CAPSOLVER_API_KEY=your-capsolver-api-key
- Add Accounts: Create accounts with your Airtasker login credentials
- Define Cities: Add cities where you want to comment
- Create Messages: Write template messages to post on tasks
- Start Bot: From the dashboard, select an account, city, and message to start commenting
For production deployment, you can use Gunicorn or Waitress:
# Using Gunicorn (Linux/Mac)
gunicorn -w 2 -b 0.0.0.0:5000 run:app
# Using Waitress (Windows/Mac/Linux)
waitress-serve --port=5000 run:app
This project is for private use only.
The application uses the CapSolver extension for solving CAPTCHA challenges. You'll need a valid API key from CapSolver to use this functionality. Set it in the .env file as CAPSOLVER_API_KEY.