Simple parser for gathering vacancies from ukranian job websites.
- in Cargo.toml
[dependencies]
tokio = "*"
ua-job-parser = "*"
- or use
cargo-add
cargo add tokio ua-job-parser
use ua_job_parser::{dou, robota, Vacancy};
#[tokio::main]
async fn main() {
let query = "rust developer";
// return list of vacancies
// if nothing was found, return empty list
let dou_vacancies: Vec<Vacancy> = dou::parse_vacancies(query).await;
let robota_vacancies: Vec<Vacancy> = robota::parse_vacancies(query).await;
println!("Founded vacancies from dou: {:#?}", dou_vacancies);
println!("Founded vacancies from robota: {:#?}", robota_vacancies);
}
- implement parser for dou
- implement parser for robota (upd. use api.robota.ua instead of parsing html)
- implement parser for work
I'll be glad if you take a look at my code and give me some advice or pull requests!