Use Python3 for running the files
For installing pip
sudo apt-get update
sudo apt-get install python3-pip
Install BeautifulSoup
sudo pip3 install beautifulsoup4
Install lxml
pip3 install lxml
Fetch the upcoming contests from different sites(Codeforces, CodeChef, AtCoder)