dart_web_scraper 0.0.1 dart_web_scraper: ^0.0.1 copied to clipboard
An easy to use and reusable web scraper and parser.
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(result);
}