browser_data 0.0.3 copy "browser_data: ^0.0.3" to clipboard
browser_data: ^0.0.3 copied to clipboard

dart package to retrieve browser's data.

example/main.dart

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
  browser = Chromium(sqlite3Path: './sqlite3.dll');

  // get history from this browser
  var histories = await browser.fetchHistory(limit: 2);

  // get bookmarks from this browser
  var bookmarks = await browser.fetchBookmarks();
}

void formatPrint(Map<String, dynamic> map) {
  JsonEncoder encoder = JsonEncoder.withIndent('  ');
  String prettyprint = encoder.convert(map);
  return print(prettyprint);
}
2
likes
0
pub points
30%
popularity

Publisher

unverified uploader

dart package to retrieve browser's data.

Repository (GitHub)
View/report issues

Topics

#browser #data

Funding

Consider supporting this project:

paypal.me
ko-fi.com

License

unknown (license)

Dependencies

file_copy, logger, path, sqlite3, win32_registry

More

Packages that depend on browser_data