Giter VIP home page Giter VIP logo

pybro's Introduction

pybro

pybro is a python module that provide access to different browsers database.

Getting Started

Currently, pybro supports Firefox, Google Chrome and Chrominum.

Prerequisites

Python 3 should be installed, or just downlod and install it.

Installing

  • Open command prompt
$ pip install pybro

Or :

$ git clone https://github.com/ahmed-BH/pybro.git
$ cd pybro
$ python setup.py install

Examples

>>> import pybro
>>> pybro.Browser.get_supported_br()
  • Get a list of currently supported browsers
>>> import pybro
>>> browser = pybro.Browser(name="firefox")
  • Idicate which browser to use using name keyword
  • if the entered browser is not valid or is unsupported yet, a ValueError exception will be raised.
>>> key_words = browser.get_keyword_search(max=10)
>>> for i in key_words :
>>>    print(i)
  • Provide max returned result or just don't provide max value to get all result.
>>> downloads = browser.get_downloads(max=5)
>>> for i in downloads :
>>>    print(i["filename"])
  • get_downloads method returns a list of dicts, its keywords are :
  • file_name
  • file_type
  • file_size
  • site_url
  • full_url
  • start_time
  • state
  • received_bytes
  • danger
>>> visits = browser.get_visited_ws(max=5)
>>> for i in visits :
>>>    print(i["url"])
  • get_visited_ws() method returns a list of dicts sorted by nb_visits, its keywords are :
  • url
  • last_visit_time
  • nb_visits
>>> bmarks = browser.get_bookmarks(max=7)
>>> for i in bmarks :
>>>    print(i["title"])
  • get_bookmarks() method returns a list of dicts sorted by nb_visits, its keywords are :
  • url
  • title
>>> fill = browser.get_autoFill(max=7)
>>> for i in fill :
>>>    print(i["value"])
  • get_autoFill() method returns a list of dicts, its keywords are :
  • value
  • date_last_used

Forensics

Firefox Chrome/Chromium
Linux ~/.mozilla/firefox/ ~/.config/google-chrome ~/.config/google-chrome-beta ~/.config/google-chrome-unstable ~/.config/chromium
Mac OS ~/Library/Mozilla/Firefox/Profiles/ ~/Library/Application Support/Firefox/Profiles/ ~/Library/Application Support/Google/Chrome ~/Library/Application Support/Chromium ~/Library/Application Support/Google/Chrome Canary
Windows %AppData%/Mozilla/Firefox/Profiles/ %LOCALAPPDATA%\Google\Chrome\User Data\ChromeDefaultData %LOCALAPPDATA%\Chromium\UserData %LOCALAPPDATA%\Google\Chrome SxS\UserData

To Do List

  • Support Opera browser
  • Support Safari browser
  • Support Microsoft Edge ๐Ÿ˜จ

pybro's People

Contributors

ahmed-bh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.