This repository contains a script for performing daily check-ins. The script can be run automatically at a scheduled time or manually using a command-line flag.
- Automatic Daily Check-In: The script is scheduled to run a check-in at 09:00 AM every day.
- Manual Check-In: You can trigger a manual check-in using a command-line flag.
- Python 3.x
schedule
module (specified inrequirements.txt
)
-
Clone the repository:
git clone https://github.com/torikushiii/levelinfinite cd levelinfinite
-
Install the required dependencies:
pip install -r requirements.txt
To start the script with automatic daily check-ins, simply run:
python main.py
To trigger a manual check-in, use the -m
or --manual
flag:
python main.py --manual
To perform the check-in, you may need to provide your Cookie and User-Agent. Here’s how you can obtain them:
-
Open your browser and navigate to the Level Infinite website (make sure you're logged in).
-
Open Developer Tools:
- For Chrome: Press Ctrl+Shift+I or F12.
- For Firefox: Press Ctrl+Shift+I or F12.
-
Go to the Network tab in the Developer Tools.
-
Find a request in the Network tab whose URL contains
GetUserTotalPoints
. The full URL might behttps://api-pass.levelinfinite.com/api/rewards/proxy/lipass/Points/GetUserTotalPoints
or something similar. You might need to refresh the page or navigate around the Level Infinite website until you see a request with this URL prefix. -
Click on the request to view its details.
-
Copy the Cookie:
- Go to the Headers section.
- Find the
Cookie
header. - Copy the value of the Cookie header.
-
Copy the User-Agent:
- In the same Headers section.
- Find the
User-Agent
header. - Copy the value of the User-Agent header.
-
Configure the Script:
-
Rename the
example.config.py
file toconfig.py
. -
Open
config.py
and paste your Cookie and User-Agent values into the appropriate variables:COOKIE = 'your_cookie_here' USER_AGENT = 'your_user_agent_here'
Replace
'your_cookie_here'
and'your_user_agent_here'
with the actual values you copied.
-
Now you can run the script, and it will use your provided Cookie and User-Agent for the check-in process.
main.py
: The main script that handles scheduling and manual check-ins.check_in.py
: A module containing the check-in logic.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under MIT License.