Skip to content

Instantly share code, notes, and snippets.

duner /
Last active Apr 28, 2022
Twitter Archive to JSON

If you download your personal Twitter archive, you don't quite get the data as JSON, but as a series of .js files, one for each month (there are meant to replicate the Twitter API respones for the front-end part of the downloadable archive.)

But if you want to be able to use the data in those files, which is far richer than the CSV data, for some analysis or app just run this script.

Run sh ./ in the same directory as the /tweets folder that comes with the archive download, and you'll get two files:

  • tweets.json — a JSON list of the objects
  • tweets_dict.json — a JSON dictionary where each Tweet's key is its id_str

You'll also get a /json-tweets directory which has the individual JSON files for each month of tweets.

duner /
Last active Oct 19, 2016
Links from KnightLab LunchConf, October 19

Today at LunchConf we watched this talk by Bret Victor on "Media for Thinking the Unthinkable". Here are some additional links that came up in our discussion after watching the talk.

Brett Victor:

Walter Ong

View requirements.txt
duner /
Last active Oct 29, 2015
Ternary Scatter Plot MatPlotLib
import numpy
import sys
import matplotlib.pyplot as plt
import matplotlib.tri as tri
import as cm
def create_chart(data):
data should be an list of lists in the form [(x,y,z), a]
View gist:f5ca9234c91cbeeb8866
(project)duner:project duner$ psql -d projectdb -c 'CREATE EXTENSION postgis;'
ERROR: could not open extension control file "/usr/local/Cellar/postgresql/9.3.5/share/postgresql/extension/postgis.control": No such file or directory

Keybase proof

I hereby claim:

  • I am duner on github.
  • I am duner ( on keybase.
  • I have a public key whose fingerprint is B1DA 17FC 5CC5 9826 94C1 4F89 D578 B113 4C81 BAFA

To claim this, I am signing this object: