0 purchases
browser data
browser_data #
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
copied to clipboard
Next, we need to install this
# Dart
pub get
# Flutter
flutter packages get
copied to clipboard
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');
copied to clipboard
You can also use it with a specific browser.
var browser = Chrome(sqlite3Path: './sqlite3.dll');
copied to clipboard
To get profiles from a browser.
var profiles = await browser.fetchProfiles();
// [Default, Guest Profile, Profile 1, Profile 2]
copied to clipboard
To get history from a browser.
If profiles parameter is null, get from all profiles.
var histories = await browser.fetchHistory(profiles: ['Default']);
copied to clipboard
To get bookmarks from a browser.
var bookmarks = await browser.fetchBookmarks();
copied to clipboard
To get passwords from a browser.
var passwords = await browser.fetchPasswords();
copied to clipboard
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.