Giter Club home page Giter Club logo

chrome-history-to-sheets's Introduction

Chrome History to Google Sheets

This repository contains all the code you need to start programmatically exporting your browsing history to a Google Sheet.

The reason I created this was to easily serve an API of this data for my site where I'm running a social experiment, publicly sharing my browsing for a month.

To create an API from Google Sheets I'm using Sheety.

This script runs every hour.

Setup

  1. Clone this repository

  2. Create a .env file like the .env.example and fill in the following data:

    1. Write the Document ID of the Google Sheet you want to use in SHEET.

    2. Head to Google Developers Console and create a new project (or select the one you have.)

    3. Under “API & auth”, in the API enable “Drive API”.

    1. Go to “Credentials” and choose “New Credentials > Service Account Key”.

    It will download a .json file.

    Put that .json file inside of the folder with this code.

    Replace CREDENTIALS in the .env file with the name of the file you downloaded:

CREDENTIALS=Drive-weird00number.json
5) Open the .json and copy the `client_email` field: `"client_email": "[email protected]"`

6) Go to your Google Sheet and share it with editing permissions to that email.
  1. Run export-chrome-history.py

And there you go! Visit the google doc you linked and it will contain all your browsing history.

chrome-history-to-sheets's People

Contributors

ferrucc-io avatar

Stargazers

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