Skip to main content

A Python utility to export Chromium-based browser history and downloads to various formats.

Project description

History Exporter

Build Status GitHub release License

Table of Contents

Introduction

HistoryExtractor is a Python utility aimed at exporting Chromium-based browser history and downloads data to various formats such as CSV, XLSX, and TXT. Designed with a focus on user flexibility, this tool provides customizable extraction options to suit different needs.

Prerequisites

  • Python 3.7+

Installation

Method 1: Using pip

You can install histexport directly using pip:

pip install histexport

Method 2: From GitHub Repository

  1. Clone the GitHub repository.
git clone https://github.com/darkarp/histexport.git
  1. Navigate to the project directory.
cd histexport
  1. Install the required Python packages.
pip install -e .

Either of these methods will install the required Python packages and make histexport available for use.

Usage

Command Line Interface

  1. Basic extraction of URLs and Downloads in txt:
histexport -i path/to/history/history_file -o output_file
  1. Specify output directory and formats:
histexport -i path/to/history/history_file -o output_file -d path/to/output -f csv xlsx
  1. Enable logging (-l):
histexport -i path/to/history/history_file -o output_file -l
  1. Extract from a folder of SQLite files:
histexport -i path/to/history_folder -t folder -o output_file -d path/to/output -f csv xlsx -e urls downloads

Arguments

  • -i, --input: Path to the SQLite history file. (required)
  • -t, --type: Type of the input: file or folder. Default is file
  • -o, --output: Base name for output files. (required)
  • -d, --dir: Output directory. (optional, default is ./)
  • -f, --formats: Output formats (csv, xlsx, txt). (optional, default is txt)
  • -e, --extract: Data to extract (urls, downloads). (optional, default is both)
  • -l, --log: Enable logging. (optional, default is disabled)

Data Extraction

The tool allows extraction of:

  • URLs: Fetches URL, Title, Visit_Count, and Last_Visit_Time.
  • Downloads: Extracts Target_Path, Start_Time, End_Time, Total_Bytes, Received_Bytes, and URL.

Output Formats

You can export the data into:

  • CSV
  • XLSX (Excel)
  • TXT (Pretty printed text file)

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

histexport-0.2.8.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

histexport-0.2.8-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file histexport-0.2.8.tar.gz.

File metadata

  • Download URL: histexport-0.2.8.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for histexport-0.2.8.tar.gz
Algorithm Hash digest
SHA256 2045ae5d251971d717c8c1caf2ad5aede37f64f04d37b620e77700e040a8b51a
MD5 ed3dfaffdf2316bef1210e646c2277c6
BLAKE2b-256 7557cd24bb00d33af906d53049438fd6dacbbf885b776e3ebc941fe5afad8bd1

See more details on using hashes here.

File details

Details for the file histexport-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: histexport-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for histexport-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 21d623f1fed5c04e4f17f3afb6f2e33f9db8d4bc42832bad69622086a8e3b316
MD5 1f1d66aabf26c9797d2a7310dfd1c799
BLAKE2b-256 4e382fb4407429b5ffe7e8109508ff02836cdeb249dde80398138c8b25b4bfa4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page