browser_data 0.0.5 copy "browser_data: ^0.0.5" to clipboard
browser_data: ^0.0.5 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
  var browser = Chrome(sqlite3Path: './sqlite3.dll');

  // get profiles
  var profiles = browser.fetchProfiles();
  print(profiles);

  // get history from browser
  var histories = await browser.fetchHistory(profiles: ['Profile 1']);
  print(histories);

  // get bookmarks from browser
  var bookmarks = await browser.fetchBookmarks(profiles: ['Default']);
  print(bookmarks);

  // get passwords from browser
  var passwords = await browser.fetchPasswords();
  print(passwords);
}

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

Publisher

unverified uploader

Weekly Downloads

dart package to retrieve browser's data.

Repository (GitHub)
View/report issues

Topics

#browser #data

Documentation

API reference

Funding

Consider supporting this project:

paypal.me
ko-fi.com

License

MIT (license)

Dependencies

encrypt, ffi, logger, path, sqlite3, win32, win32_registry

More

Packages that depend on browser_data