Code Monkey home page Code Monkey logo

google-chrome-toolkit's Introduction

Google Chrome toolkit

This project is a toolkit for Google Chrome to perform various operations that are not available in Chrome or tedious to do manually. Currently, there are two use-cases:

  • Export browser history to various formats including CSV, HTML and simple text file. The history is read from Chrome's sqlite DB.
  • Save open tabs to a text file from a connected Android device via adb.

Getting started / Setup

You need to have python 3.8 and pip installed. Run make from the project's root directory, all python dependencies required by the project will be installed.

Additional steps

Make sure to have proper PYTHONPATH, this needs to be in the path:

<project-root-dir>/venv/lib/python3.8/site-packages/

Example

echo $PYTHONPATH
/Users/snemeth/Library/Python/3.8/lib/python/site-packages/:/Users/snemeth/.asdf/installs/python/3.8.12/lib/python3.8/site-packages:/Users/snemeth/.linuxenv//scripts/python/:/Users/snemeth/development/my-repos/google-chrome-toolkit/venv/lib/python3.8/site-packages/

Launch with command from main dir:

python3 main.py

Running the tests

Currently, there are no tests added to this project.

Main dependencies

  • sqlite3 - SQLite is a C library that provides a lightweight disk-based database that doesn’t require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language.
  • tabulate - python-tabulate: Pretty-print tabular data in Python, a library and a command-line utility.
  • requests - Requests: HTTP for Humans™

Contributing

Feel free to contribute in a PR.

Authors

Example commands

HTML export, with auto-detecting DB files:

main.py --search-db-files --export-mode html

CSV export, with auto-detecting DB files:

main.py --search-db-files --export-mode csv

Text export, with auto-detecting DB files:

main.py --search-db-files --export-mode text

Export to all formats with specified profile:

main.py --search-db-files --export-mode all --profile profile1

Export to all formats with all profiles:

main.py --search-db-files --export-mode all

Export to all formats with all profiles, restricting date range:

main.py -f /Users/szilardnemeth/Downloads/chromedb --search-db-files --export-mode all --from-date 2020-09-13 --to-date 2020-09-17

HTML export with a specified Chrome DB file:

main.py -f <db_file> --export-mode html

Export and list DB tables:

main.py -f <db_file> --list-db-tables --export-mode html

Save all open tabs from a connected Android device:

./save_open_tabs_android.py

google-chrome-toolkit's People

Contributors

szilard-nemeth avatar

Stargazers

 avatar  avatar

Watchers

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