Crates.io | ua-job-parser |
lib.rs | ua-job-parser |
version | 0.2.0 |
source | src |
created_at | 2023-04-06 20:34:35.571424 |
updated_at | 2023-04-07 22:18:58.620836 |
description | Simple parser for gathering vacancies from ukranian job websites |
homepage | |
repository | https://github.com/dromse/ua-job-parser |
max_upload_size | |
id | 832467 |
size | 12,552 |
Simple parser for gathering vacancies from ukranian job websites.
[dependencies]
tokio = "*"
ua-job-parser = "*"
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);
}
I'll be glad if you take a look at my code and give me some advice or pull requests!