This is a web scraper written in python to scrape the profile of a user on code wars(a competitive programming website). Although the CodeWars API is publicly available I made this scraper just for the love of scraping.
You need requests, BeautifulSoup and texttable to run this script.
Run the following commands on your terminal
Using apt-get:
$ sudo apt-get install python3-requests
Using pip:
$ pip3 install requests
Using apt-get:
$ sudo apt-get install python3-bs4
Using pip:
$ pip3 install beautifulsoup4
Using apt-get:
$ sudo apt-get install python3-texttable
Using pip:
$ pip3 install texttable
Fisrt you need to install virtualenv, if you don't already have one. Install it using the following command:
$ python3 -m pip3 install --user virtualenv
Then you need to create a virtual environment. To create a virtual environment, go to your project’s directory and run virtualenv using the following command:
$ python3 -m virtualenv env
Before you can start installing or using packages in your virtualenv you’ll need to activate it. Run the following command to activate virtualenv:
$ source env/bin/activate
Now, to install the required packages follow the instructions as mentioned under the section System-wide installation
.
Note:
- It is recommended to run
sudo apt-get update
before running the above commands. - If you don't have python3/pip3 installed, replace
python3
/pip3
withpython
/pip
and run the command. - If you like what you see give it a ⭐ .