You are not logged in.

#1 2016-04-09 21:31:58

dmerej
Member
From: Paris
Registered: 2016-04-09
Posts: 101
Website

static_tl: backup your twitter TL

Hello,

Maybe some of you will be interested by this project I've started recently.

Everything is explained on the github's readme, but if you're too busy, here's the gist of it.

After you've registered static_tl (as any other twitter app), you can run two commands:

static-tl get

This will fetch all your tweets from the last two months and store all the dat returned by twitter as json files.

Only then you can run

satit-tl gen

which will generate a fully static backup of your TL.

In effect it's not very different than the t command line does, with

t timeline

except the design is quite different.

The code is written in 200 SLOC of Python3 and is really simple and easy to extend, you can do pretty much anything you want.
I use the excellent jinja2 library and again, the whole metada is available directly in the templates, which gives a lot of flexibility.

Here's what it looks like for now: http://dmerej.info/tweets/

Note that t.co URLs are rewritten to their original values, and how you get nice permalinks: http://dmerej.info/tweets/2016-04.html#17

Anyhow, let me know what you think smile

Edit Forgot to make an AUR package. Here you go: ttps://aur.archlinux.org/packages/static_tl

Last edited by dmerej (2016-04-09 22:36:18)


Responsible Coder, Python Fan, Rust enthusiast

Offline

Board footer

Powered by FluxBB