Skip to content

Script to add friends on Codeforces by write them handle's on txt file

Notifications You must be signed in to change notification settings

7oSkaaa/Codeforces-Friends-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeforces Friends Script

Requirements

Linux User

# installing python
sudo apt install python3
# installing pip
sudo apt install python3-pip

Windows User

  1. 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 .

  2. Install pip from here

Installing

# 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

Usage

  1. Rename .env.example to .env and fill the data:

    1. CF_HANDLE: your codeforces handle
    2. CF_PASSWORD: your codeforces password
    3. REMOVE_EXIST_FRIENDS: True or False
      1. True: remove the existing friends and add the new ones
      2. False: add the new friends without removing the existing ones
  2. open your terminal and run this command:

    # run the script
    python3 main.py
  3. Enjoy!

Note

  • 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.

Demo Video

CodeforcesFriends.mp4

About

Script to add friends on Codeforces by write them handle's on txt file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published