browser_data 0.0.4 browser_data: ^0.0.4 copied to clipboard
dart package to retrieve browser's data.
import 'dart:convert';
import 'package:browser_data/browser_data.dart';
Future<void> main(List<String> args) async {
// get default browser from device
// var browser = defaultBrowser(sqlite3Path: './sqlite3.dll');
// get specific browser
var browser = Chrome(sqlite3Path: './sqlite3.dll');
// get history from this browser
var histories = await browser.fetchHistory();
var bookmarks = await browser.fetchBookmarks();
// get bookmarks from this browser
var passwords = await browser.fetchPasswords();
}
void formatPrint(Map<String, dynamic> map) {
JsonEncoder encoder = JsonEncoder.withIndent(' ');
String prettyprint = encoder.convert(map);
return print(prettyprint);
}