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.

Browser

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

import 'package:browser_data/browser_data.dart';

var browser = defaultBrowser();

You can also use it with a specific browser

var browser = Chrome();

If you want to use with specific sqlite3

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

Profiles

To get profiles from a browser.

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

History

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

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

Use pagination for history list

var histories = await browser.fetchHistory(limit: 4, page: 1);

Bookmark

To get bookmarks from a browser.

var bookmarks = await browser.fetchBookmarks();

Password

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.

About

Dart package to retrieve browser's data.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages