#hh #api-bindings #access-token #headhunter #hh-ru

headhunter-bindings

Rust bindings to the Headhunter API (https://hh.ru)

1 unstable release

0.1.0 Feb 4, 2023

#763 in Authentication

21 downloads per month
Used in headhunter-cli

MIT license

14KB
291 lines

bump-my-resume

Build Status Latest Version Documentation

Tool for Headhunter that can automatically update resumes

Now you can simply register the application at https://dev.hh.ru/admin and get an access token once using Selenium. This tool will simulate activity on a job search website and keep your resume on top.

Requirements

Installing

# run ChromeDriver on the another thread (it should use port 9515)
chromedriver &

# pass authorization, this requires a ChromeDriver
cargo build --release
# replace it with your data
./target/release/headhunter-cli auth \
  "client_id" \
  "client_secret" \
  "login" \
  "password"

# credentials are written to response.json
cat response.json

# you can now use the CLI to update the latest date on your resume
./target/release/headhunter-cli bump

Building statically linked binary on Linux

I found that useful for running on remote machine. You need to add some packages and musl target to do that.

# add musl-gcc command
sudo apt install musl-tools

# add linux musl target
rustup target add x86_64-unknown-linux-musl

# build statically linked binary
cargo build --release --target x86_64-unknown-linux-musl

# note: it's available in bit different directory
./target/x86_64-unknown-linux-musl/release/headhunter-cli --help

Configuration on server

  1. put response.json and ./target/release/headhunter-cli to the same directory, e.g. to /root/bump-my-resume
  2. run crontab -e
  3. append it with line like this: 0 */1 * * * cd /root/bump-my-resume && ./target/release/headhunter-cli bump >> out.txt 2>&1

Dependencies

~10–25MB
~373K SLoC