= Soup

Inspired by the python library BeautifulSoup, this is a layer on top of html5ever that adds a different API for querying & manipulating HTML

== Installation

In order to use, add the following to your Cargo.toml:


[dependencies]

soup = "0.1"

== Usage


// src/main.rs

use std::error::Error;

use reqwest; use soup::prelude::*;

fn main() -> Result<(), Box> { let response = reqwest::get("https://google.com")?; let soup = Soup::fromreader(response); let sometext = soup.find() .tag("p") .attr("class", "hidden") .execute() .unwrap() .text() .unwrap(); }