This Python script automates the process of claiming tasks. It reads authorization tokens from a file, extracts usernames, and uses those tokens to claim tasks asynchronously. The script is designed to run indefinitely with periodic pauses, making it ideal for long-term automation tasks.
- Asynchronous HTTP requests using
aiohttp
for efficient task handling. - Randomized user-agent headers with
fake-useragent
to simulate different clients. - Asynchronous file reading with
aiofiles
to handle large numbers of tokens. - Comprehensive logging with
logging
module for easy monitoring and debugging. - Graceful exit on user interruption (
Ctrl + C
).
- Python 3.7 or higher
aiohttp
libraryaiofiles
libraryfake-useragent
library
-
Clone the Repository:
git clone https://github.com/DeltaUniverse/Agent301-autotask.git cd Agent301-autotask
-
Install Required Libraries:
Install the necessary Python libraries by running:
pip install aiohttp aiofiles fake-useragent
-
Prepare Your
query.txt
File:Create a file named
query.txt
in the project directory. This file should contain the authorization tokens you want to use, one per line:token1 token2
-
Run the Script:
Start the script by running:
python main.py
-
Monitor the Output:
The script logs all actions and errors. You can monitor the output directly in the terminal or check the
logger.log
file for a detailed log of all operations performed. -
Stopping the Script:
To stop the script, press
Ctrl + C
in the terminal where it's running. The script will handle the interruption gracefully and exit.
We welcome contributions! Feel free to fork the repository and submit pull requests. If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
For updates, support, and more information, join our Telegram channels:
This project is licensed under the MIT License - see the LICENSE file for details.