browser_data 0.0.4 browser_data: ^0.0.4 copied to clipboard
dart package to retrieve browser's 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
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 history
from a browser.
You can limit the history count.
var histories = await browser.fetchHistory(limit: 10);
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.