Giter Club home page Giter Club logo

browser-history's Introduction

browser-history

tests Documentation Status PyPI version codecov Code style: black Maintainability

browser-history is a simple, zero-dependencies, developer-friendly python package to retrieve (almost) any browser's history on (almost) any platform.

Features

  • Supports most popular browsers. See this for a full list.
  • Supports all major platforms - Windows, Mac and Linux.
  • A command-line tool: simply run browser-history --help from your terminal.
  • History: browsing history with exact timestamp and URL.
  • Bookmarks: browser bookmarks with timestamp, URL, title and folder.
  • Lightweight: the entire package is less than 20kB in size and has no dependencies other than python 3.6+.
  • Developer friendly: you can add support for new browsers or add a new feature very easily.
  • Fully open source: this project is developed and maintained by PES Open Source and will always be open source (with the Apache 2.0 License).

Quick Start

Installation

To install the latest release:

pip install browser-history

To install from the master branch (warning: development version. Things could break)

pip install git+https://github.com/pesos/browser-history.git

Usage

History

To get history from all installed browsers:

from browser_history import get_history

outputs = get_history()

# his is a list of (datetime.datetime, url) tuples
his = outputs.histories

If you want history from a specific browser:

from browser_history.browsers import Firefox

f = Firefox()
outputs = f.fetch_history()

# his is a list of (datetime.datetime, url) tuples
his = outputs.histories

Bookmarks

WARNING: Experimental feature. Although this has been confirmed to work on multiple (Firefox and Chromium based) browsers on all platforms, it is not covered by tests and has not been used as much as the history feature.

To get bookmarks from all installed browsers:

from browser_history import get_bookmarks

outputs = get_bookmarks()

# bms is a list of (datetime.datetime, url, title, folder) tuples
bms = outputs.bookmarks

To get bookmarks from a specific browser:

from browser_history.browsers import Firefox

f = Firefox()
outputs = f.fetch_bookmarks()

# bms is a list of (datetime.datetime, url, title, folder) tuples
bms = outputs.bookmarks

Check out the documentation for more details.

Supported Browsers

Read the documentation

License

Licensed under the Apache License, Version 2.0 (the "License")

browser-history's People

Contributors

abhisinha2001 avatar anirudhrowjee avatar daemondeal avatar lawjarp-a avatar madhavjivrajani avatar obaraemmanuel avatar om-amitesh avatar rachmadaniharyono avatar rahulmakhija30 avatar rajawatamit avatar robertwetzler avatar roysti10 avatar ryantcullen avatar s04 avatar sadielbartholomew avatar samyak2 avatar sanchitjain123 avatar siddhantrao23 avatar sujanchegu avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

tanya-chan

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.