如何使用:
- 执行
pip install -r requirements.txt
安装所需的依赖。 - 在keys.json中填入已有的warp plus key。是的,你至少需要一个有效的warp plus key来生成新的key。
- 在main.py中修改生成的key数量。默认一次生成一个。
- 修改一个key所需要生成的流量,单位为GB,默认一个新key刷10GB,实际上刷出来的会少一点。
- 执行
python main.py
开始生成key。
- 以下为README原文。
This is a Python script that generates Warp Plus keys for your applications using Cloudflare.
The script automates the following procedures:
- Registers a new user account
- Adds a referral to the account
- Deletes the referral account
- Updates the initial license (swap with another license from a predefined list and then swap back to the initial)
- Retrieves final quota and checks if Warp Plus is enabled
- If Warp Plus is enabled, final license and quota are stored in a JSON file.
- Python 3.11.4
- httpx package for sending HTTP requests
- python-dotenv package for managing environment variables
These packages can be installed using:
pip install -r requirements.txt
- Clone the repository
- Navigate to project directory
- Create the .env file in the project directory and populate it with your keys. The format should be:
KEYS=key1,key2,key3,...
❗All keys must be already Warp+ for generation new keys. You need at least a one warp+ key! 4. To start the key generation process, simply run the Python script:
python main.py
Please note you need to specify the number of keys the program must generate in the main
function.
This script is provided as is without any guarantees or warranty. The author is not responsible for any misuse or damage caused by this program.
Contributions, issues, and feature requests are welcome!