Visualizes you Pocket added vs archived article counts
-
Go to https://getpocket.com/developer/apps/ and create new webapp
-
Run
node get-items.jsand enter your PocketUSER_NAMEand your new app'sCONSUMER_KEY -
After that a bowser window should open for you to authenticate the app
-
After successful authentication you can go back to the console (the browser window/tab will close itself)
-
When the downloading is complete there will be
items.jsonfile with all your articles
$ node get-items.js
Listening on port 8080
? Enter your Pocket user name: USER_NAME
? Enter your Pocket App Consumer Key: CONSUMER_KEY
Getting request token...
Opening Pocket login window
Request code XXXXXXXX-XXXX-XXXX-XXXX-XXXXXX
Getting auth token...
Auth token XXXXXXXX-XXXX-XXXX-XXXX-XXXXXX
Getting items..
Getting items from 0 to 1000
Getting items from 1000 to 2000
Getting items from 2000 to 3000
Getting items from 3000 to 4000
Getting items from 4000 to 5000
Getting items from 5000 to 6000
Getting items from 6000 to 7000
Getting items from 7000 to 8000
Getting items from 8000 to 9000
Getting items from 9000 to 10000
Getting items from 10000 to 11000
Total items 10105
Writing items to items.json
Done- Run
node visualize.jsto generate your graph topocket-viz.svg
$node visualize.js
Generating pocket-viz.svg
DoneMIT, see LICENSE.md for details.
