Giter Site home page Giter Site logo

takeout-parser's Introduction

Takeout Parser

With the demise of Google Reader I had to find an alternative RSS aggregator. Before Reader shut down I exported my content using Google Takeout. Rather than import my old starred items into my new home for RSS feeds, I wanted to save them in Evernote. I wrote this little app to parse the Google Takeout JSON into text, HTML or Markdown. I also added the ability to import items into Instapaper. You can use this with the starred, shared, shared-by-followers, notes, and liked JSON export files.

Usage

First, export your Reader data using Google Takeout.

Un-ZIP your exported data and look in the "Reader" folder.

Option 1: Parse Your Items

Parse your exported data like this:

$ node parse-reader.js <PATH TO INPUT.json> <PATH TO OUTPUT> <FORMAT (text/html/markdown)> <SORT ORDER (ascending/descending)>

For example:

$ node parse-reader.js ./example/example.json ./example/output.html html

Allowed values for the output format are text, html and markdown.
Allowed values for the sort order are ascending and descending.
The templates used for text and html output use mustache and are located in the /views folder. Customize them to suit your needs.

Option 2: Import Your Items

Import your items (into Instapaper) like this:

$ node import-reader.js <PATH TO INPUT.json> <IMPORT SERVICE>

For example:

$ node import-reader.js ./example/example.json instapaper

Instapaper is the only supported service currently.
The importer uses the Instapaper simple API rather than the full API:

  • Simple API doesn't require user to have a Pro account.
  • User does not have to register an app and obtain consumer key/secret for xAuth.

However, there are some limitations:

  • Imports are limited to 120 per hour.
  • The simple API seems to throttle add requests after the first 4 attempts.

To mitigate these issues I've added a 5 second delay (see config file). However, I'm not sure how this import will perform for a large (50+) import attempt.

takeout-parser's People

Contributors

shoemaker avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Forkers

yut148

takeout-parser's Issues

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.