Skip to content

thitlwincoder/browser_data

Repository files navigation

browser_data

pub package Last Commits GitHub repo size License
Uploaded By

browser_data is a dart package to retrieve the browser's data.

Features Windows Mac Linux
History ✔️ ✔️ ✔️
Bookmarks ✔️ ✔️ ✔️
Passwords ✔️
Downloads

Support Browsers

  • Chromium
  • Chrome
  • Firefox
  • LibreWolf
  • Safari
  • Edge
  • Opera
  • OperaGX
  • Brave
  • Vivaldi
  • Epic
  • Avast
  • Torch
  • Orbitum
  • CentBrowser
  • Yandex

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  browser_data: latest

Next, we need to install this

# Dart
pub get

# Flutter
flutter packages get

Usage

Before starting, you must download sqlite3.dll for this package.

If you want to get the default browser from the device :

import 'package:browser_data/browser_data.dart';

var browser = defaultBrowser(sqlite3Path: './sqlite3.dll');

You can also use it with a specific browser.

var browser = Chrome(sqlite3Path: './sqlite3.dll');

To get profiles from a browser.

var profiles = await browser.fetchProfiles();
// [Default, Guest Profile, Profile 1, Profile 2]

To get history from a browser. If profiles parameter is null, get from all profiles.

var histories = await browser.fetchHistory(profiles: ['Default']);

To get bookmarks from a browser.

var bookmarks = await browser.fetchBookmarks();

To get passwords from a browser.

var passwords = await browser.fetchPasswords();

Contribution

Feel free to file an issue if you find a problem or make pull requests.

All contributions are welcome :)

Disclaimer

I just wanted to let you know that I am not responsible for any misuse. This package is only for educational purposes.