Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manucabral/pybrinf
A lightweight, zero dependencies and free Python library for extract browser information.
https://github.com/manucabral/pybrinf
brinf browser browser-history browser-info browserhistory chrome chromium edge firefox snss
Last synced: about 1 month ago
JSON representation
A lightweight, zero dependencies and free Python library for extract browser information.
- Host: GitHub
- URL: https://github.com/manucabral/pybrinf
- Owner: manucabral
- License: gpl-3.0
- Created: 2022-09-22T02:53:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T05:06:39.000Z (10 months ago)
- Last Synced: 2024-07-30T17:34:36.179Z (5 months ago)
- Topics: brinf, browser, browser-history, browser-info, browserhistory, chrome, chromium, edge, firefox, snss
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## pybrinf
A lightweight, zero dependencies and free Python library for extract browser information.
'Python Browser Information' allows you to extract, export or view basic information about your browser using the python language.
This project is just started, currently in development. Only supports **Windows** and **Linux**.
### Features
- Supports [popular browsers](https://github.com/manucabral/pybrinf/wiki#supported-browsers)
- Detects your default browser
- Use any installed browser
- Get downloads or history
- Get browser Sessions
- Get current browser tab### Installation
PyPI package is not available yet, clone it.
```bash
git clone https://github.com/manucabral/pybrinf.git
```### Usage
Setting up
```py
from pybrinf import Brinfbrinf = Brinf()
brinf.init()
```Get downloads from all installed browsers
```py
for download in brinf.downloads():
print(download.url, download.browser)
```
Get history from all installed browsers
```py
for website in brinf.history():
print(website.title, website.url)
```
Get active tab in the browser
```py
session = brinf.default_browser.session()
tab = session.current_tab
print(tab.url)
```
Get all tabs from the last session
```py
session = brinf.default_browser.session()
for tabs in session.tabs()
print(tabs.url)
```Get all installed browsers in your system
```py
browsers = brinf.installed_browsers()
```
Use another installed browser
```py
opera = brinf.browser('opera')
```And more! Check out the [wiki](https://github.com/manucabral/pybrinf/wiki) for more details.
### Constributions
All constributions, bug reports or fixes and ideas are welcome.