This bot offers a choice of profession, which is used to search for vacancies on the site https://www.superjob.ru
To launch the bot, you need to register the following commands in the console:
git clone https://github.com/khoribz/review2.git -b dev
cd review2
pip3 install -r requirements.txt
python3 bot.py;
Now you can find a Telegram bot @GetVacancyBot and look for a job)
bot.py - a file containing the main functions used when interacting with the bot
parse.py - a file in which information about vacancies is searched depending on the chosen profession
database.py - a file containing functions that work with databases
const.py - a file containing constants
global_var.py - a file containing global variables
jobs_name.py - a file containing a dictionary of the profession and its part of the address on the site
tests.py - a file containing tests of the site parsing results
requirements.txt - project launch requirements
Procfile - the file needed to connect the bot to the Heroku server
/start - start the bot
/help - further instructions after the start
/search - a command to show professions for which vacancies can be found
/more - show more vacancies for the chosen profession
To test the results of site parsing, it is necessary, while in the directory with the project, to register the following command in the console:
pytest tests.py