Spider class

Constructors

Spider()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

childFinder(String parent, List<Parser> allParsers) List<Parser>
parsingHandler(List<Parser> allParsers, List<Parser> parsers, dynamic dom) Future<Map<String, dynamic>>
runParser(Parser parser, dynamic dom) → dynamic
scrapeFromUrl(Map<String, Config> masterConfig, String? url, {String? html, Extract extract = Extract.product, Map<String, Config> priceConfig = const {}}) Future
Entry point for scraper. Requires, Map of Config and a url. You can pass pre-fetched html if it's available, so scraper can skip fetching HTML and start parsing directly. extract and priceConfig was meant to be used for e-commerce price fetching when only price was needed. You can ignore it.
scrapingHandler(String url, Config config, {String? html}) Future