Skip to content

manucabral/pybrinf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • 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.

git clone https://github.com/manucabral/pybrinf.git

Usage

Setting up

from pybrinf import Brinf

brinf = Brinf()
brinf.init()

Get downloads from all installed browsers

for download in brinf.downloads():
    print(download.url, download.browser)

Get history from all installed browsers

for website in brinf.history():
    print(website.title, website.url)

Get active tab in the browser

session = brinf.default_browser.session()
tab = session.current_tab
print(tab.url)

Get all tabs from the last session

session = brinf.default_browser.session()
for tabs in session.tabs()
    print(tabs.url)

Get all installed browsers in your system

browsers = brinf.installed_browsers()

Use another installed browser

opera = brinf.browser('opera')

And more! Check out the wiki for more details.

Constributions

All constributions, bug reports or fixes and ideas are welcome.