HeadHunter bot that raises resumes in searches after a certain time interval.
Bot have ordinary construction with 3 components in it:
type Bot struct {
ResourceUrl string
BorwserCaps selenium.Capabilities
Refreshing time.Duration
}
- ResourceUrl - link to page that bot will visiting;
- BorwserCaps - it's external library struct from tebeka/selenium. Capabilities configures both the WebDriver process and the target browsers, with standard and browser-specific options;
- Refreshing - repeating time interval after which the bot will perform its target actions using the selenium webdriver.
Below are described ways to launch this bot locally with the necessary configuration.
-
Clone this repo by typing in terminal:
git clone https://github.com/IceTweak/gohunterbot.git cd gohunterbot
-
Build Docker Image using Dockerfile
docker build --tag hh-bot .
-
Check builded image via:
docker images
should print out same thing:
REPOSITORY TAG IMAGE ID CREATED SIZE hh-bot latest 5ddbe4b65cc1 5 seconds ago 20.4MB
-
Run image using
docker compose
:docker compose up
(run command in the same folder as compose.yaml file).