# installing python
sudo apt install python3
# installing pip
sudo apt install python3-pip
-
Windows user can install python3 from here and make sure that you will check the option
Add Python 3.x to PATH
while installing and . -
Install pip from here
# downloading the script
git clone https://github.com/7oSkaaa/Codeforces-Friends-Script.git
or you can download the script from here
open your terminal and run these commands
# open the folder of the script
cd Codeforces-Friends-Script
# downloading the requirements and updating them
pip install --upgrade -r requirements.txt
Install Chorme Driver
-
Rename
.env.example
to.env
and fill the data:- CF_HANDLE: your codeforces handle
- CF_PASSWORD: your codeforces password
- REMOVE_EXIST_FRIENDS: True or False
- True: remove the existing friends and add the new ones
- False: add the new friends without removing the existing ones
-
open your terminal and run this command:
# run the script python3 main.py
-
Enjoy!
- if the script take 10 seconds without printing anything, close the script and run it again.
- this problem is caused by the codeforces website, it's not a problem with the script.