1 unstable release
0.1.0 | Feb 4, 2023 |
---|
#3 in #hh
27KB
408 lines
bump-my-resume
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
- ChromeDriver
- Windows: windows-latest-chrome.ps1
- Linux: ubuntu-latest-chrome
- macOS: macos-latest-chrome
- Account on https://hh.ru
login
password
- Registered application on https://dev.hh.ru/admin
client_id
looks likeUWWE5NX5SXFVJAFVBDB3M1P8B7K3L0XK4HIJWFEPAZLW0CGRMUA997PG38I21C71
client_secret
looks likeGGIGAZEFM796C6ZSTV0O5UUNIY06GVTC45XFZKEUEEB9ZIMP2ZMICXVDGQBTF2BT
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
- put
response.json
and./target/release/headhunter-cli
to the same directory, e.g. to/root/bump-my-resume
- run
crontab -e
- append it with line like this:
0 */1 * * * cd /root/bump-my-resume && ./target/release/headhunter-cli bump >> out.txt 2>&1
Dependencies
~15–29MB
~456K SLoC