```rust
fn main() {
use loa::{getelementsbytagname, getfirstelementbytagname, Getattribute};
let html = includestr!("../index.html");
let plist: Vec
## parse html get Vec of nodes
rust
#[allow(warnings)]
fn main() {
use loa::{getelementsbytagname, getfirstelementbytagname, Getattribute};
let html = includestr!("../index.html");
let plist: Vec
## parse html and get first element by tag name
rust
#[allow(warnings)]
fn main() {
use loa::{getelementsbytagname, getfirstelementbytagname, Getattribute};
let html = includestr!("../index.html");
let plist: Vec
```
```rust
fn main() {
use loa::{
getelementsbyclassname, getelementsbytagname, getfirstelementbytagname,
Getattribute,
};
let html = includestr!("../index.html");
let allclass = getelementsbyclassname(html, "cake");
println!("{:#?}",allclass);
}
## get all a tags href
rust
#[allow(warnings)]
fn main(){
use loa::*;
let html = includestr!("../index.html");
let hrefs = getallahrefs(html);
println!("{:#?}",hrefs.unwrap());
}
```
rust
#[allow(warnings)]
fn main(){
use loa::*;
let html = include_str!("../index.html");
let body = get_first_element_by_tag_name(html, "head").unwrap();
let text = body.inner_text().unwrap();
println!("{}",text);
}
rust
#[allow(warnings)]
fn main() {
use loa::{
get_elements_by_class_name, get_elements_by_tag_name,
get_first_element_by_tag_name,
get_first_element_by_class_name,
Getattribute,
};
let html = include_str!("../index.html");
let class = get_first_element_by_class_name(html, "cake");
println!("{:#?}",class);
}