scraper_query
scraper_query is a simple tool for you to query components in HTML documents with scraper so that you can easily do simple HTML manipulations, which are common in web crawling and web scraping and data cleaning.
Usage
use Html;
use *; // use `HTMLIndex`, `Tag`, `class`, `id`
use TreeSink;
let mut document = parse_document;
let index = new;
// find all nodes with class "foo" and "bar"
let node_ids = index.query;
// find all nodes with id "foo"
let node_ids = index.query;
// find all nodes with tag "h1" and class "foo"
let node_ids = index.query; // same as `Tag::H1.and(class("foo"))`
// find all nodes with tag "h1" and not class "foo"
let node_ids = index.query;
// simple manipulation
for id in node_ids