GithubHelp home page GithubHelp logo

alanandre / hhresumeupdater Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 46 KB

This script allows you to raise your resume in the search automatically on hh.ru

License: GNU General Public License v3.0

Python 100.00%

hhresumeupdater's Introduction

HH Resume Updater

This script allows you to raise your resume in the search automatically on hh.ru

How to use it:

  • You no longer need to download the driver of Chrome browser. Webdriver-manager got you covered

  • Uses Loguru, which covers the output and errors. Cleans up log file each 5 days. Can modify that.

  • Install dependencies: pip install loguru selenium webdriver-manager or if you're on mac/linux: pip3 install loguru selenium webdriver-manager

  • Create a config.py file with "user_name, password = 'USERNAME', 'PASSWORD'". If you plan to use Tor, then you should add: tor_exe = r'TORDIRECTORY/tor.exe'

  • Start script. You can choose how many times the script will run

With a Raspberry Pi:

Loguru is more memory intensive than 'print', so I've found.

  • sudo apt-get install chromium-browser chromium-chromedriver

A nice idea is to increase swap space:

  • sudo nano /etc/dphys-swapfile
  • Raspbian has 100MB of swap by default. You should change it to 2048MB in the configuration file. So you will have to find this line:CONF_SWAPSIZE=100 And then change it into: CONF_SWAPSIZE=2048
  • sudo /etc/init.d/dphys-swapfile stop
  • sudo /etc/init.d/dphys-swapfile start

This is my way of automating the process using Crontab which outputs standard output and standard error to "updater.log" and deleting the file when it's older then 7 days: crontab -e

5 7 * * * /usr/bin/python3 /home/pi/hh_resume_updater_Selenium/hh_updater.py >> /home/pi/hh_resume_updater_Selenium/logs/updater.log 2>&1
10 11 * * * /usr/bin/python3 /home/pi/hh_resume_updater_Selenium/hh_updater.py >> /home/pi/hh_resume_updater_Selenium/logs/updater.log 2>&1
15 15 * * * /usr/bin/python3 /home/pi/hh_resume_updater_Selenium/hh_updater.py >> /home/pi/hh_resume_updater_Selenium/logs/updater.log 2>&1
20 19 * * * /usr/bin/python3 /home/pi/hh_resume_updater_Selenium/hh_updater.py >> /home/pi/hh_resume_updater_Selenium/logs/updater.log 2>&1
25 23 * * * /usr/bin/python3 /home/pi/hh_resume_updater_Selenium/hh_updater.py >> /home/pi/hh_resume_updater_Selenium/logs/updater.log 2>&1
0 0 * * 3 /usr/bin/find /home/pi/hh_resume_updater_Selenium/logs/ -type f -exec rm {} +

On my RaspberryPi Zero, which is also running PiHole, the script takes +- 5 minutes.

Features of this script:

  • Works in hidden mode (the browser window does not open) This can be changed in the settings

  • Bypasses captcha

  • Prints the result of execution to the console after each action

  • Writes the results of work to a log file

  • Possible errors are provided

hhresumeupdater's People

Contributors

alanandre avatar alanovandrew avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.