dart_web_scraper 0.0.14 dart_web_scraper: ^0.0.14 copied to clipboard
Easy-to-use, reusable web scraper for scraping data. Extracts and cleans HTML/JSON, providing structured data results from web scraping. Ideal for scrapers looking for efficient ways to scrape and pro [...]
import 'dart:convert';
import 'package:dart_web_scraper/dart_web_scraper.dart';
import 'configs.dart';
void main() async {
/// Initialize WebScraper
WebScraper webScraper = WebScraper();
/// Scrape website based on configMap
Map<String, Object> result = await webScraper.scrape(
url: Uri.parse("https://quotes.toscrape.com"),
configMap: configMap,
configIndex: 0,
debug: true,
);
print(jsonEncode(result));
}