~mrshll1001/zadkiel

Python script used to transform exported Twitter tweets to an XML format used to import into Brimstone
8f14608e — Matt Marshall 6 years ago
Initial commit
Initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~mrshll1001/zadkiel
read/write
git@git.sr.ht:~mrshll1001/zadkiel

You can also use your local clone with git send-email.

#zadkiel

A script which takes exported tweets from twitter, and converts them into into Brimstone formatted XML for uploading to a Brimstone installation.

Named after Zadkiel: the archangel of freedom, benevolence and mercy. It is named as such to symbolise liberating my historic tweets from Twitter into a format that my systems can use. It is decoupled from Brimstone because Brimstone is focused on pushing my content out, and I had already written the plumbing to get files uploaded into the system.

It has been developed based on my needs:

  • Excludes retweets
  • Collapses hashtag array to remove duplicate hashtags
  • Includes basic date filter (excludes all tweets after given date)

#requirements

pip3 install jinja2

#how-to

  1. Clone the repo.
  2. Download your twitter data
  3. Take the file tweet.js and open it. Remove the javascript variable assignment, leaving the JSON array. Rename to tweet.json
  4. Copy tweet.json to the zadkiel folder, next to zadkiel.py.
  5. Ensure zadkiel.py is executable and execute it.