The project is designed to analyze the average salaries of programmers in Moscow by popular programming languages.
This Python script uses public data from the HeadHunter and SuperJob job search platforms. It makes queries to the APIs of these sites to collect data on job openings for the specified programming languages.
The script analyzes the offered salaries and calculates the average salary for each programming language. The results are then displayed as a table in the console.
To use this script, you need to have Python installed on your computer. You can download the latest version of Python from official website.
To install the required dependencies, run the following command:
pip install -r requirements.txt
-
Create an account on SuperJob register your application and SeceretKey will be generated for you, which will be in "Your Application" section of your account.
-
Create a .env file in the same directory as the script and add the following line:
SUPER_JOB_KEY=<your_secret_key>
.
To use the script, open a terminal or command line and go to the directory where the script is located.
Run the script by running the following command:
python main.py
.
The console will show you the results of job analysis on HeadHunter and SuperJob sites in form of two tables with information about average earnings of programmers in Moscow by popular programming languages.
This script requires the following Python packages:
- python-dotenv==1.0.0
- requests==2.28.2
- terminaltables==3.1.10
This code was written for educational purposes as part of an online course for web developers at dvmn.org.