scrape1 [Rust] Scraping 예제 (59일차) // cargo add select use select::document::Document; use select::predicate::Name; fn main() { let html = "Hello, world!"; let document = Document::from(html); let h1 = document.find(Name("h1")).next().unwrap(); println!("{}", h1.text()); } // cargo add scraper use scraper::{Html, Selector}; fn main() { let html = "Hello, World!"; let document = Html::parse_document(html); let selector = Selector:.. 2023. 2. 19. 이전 1 다음