Skip to content

Generate Twitter Stats from a downloaded Twitter archive. (D language version)

License

Notifications You must be signed in to change notification settings

mortonfox/twstat-d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twstat-d - Generate stats charts from downloaded Twitter archives

Introduction

This is a version of twstat that I have rewritten in the D language for speed.

In December 2012, Twitter introduced a feature allowing users to download an archive of their entire user timeline. By February 2013, it was available to all users.

To request your Twitter archive:

  1. Visit https://twitter.com/settings/account
  2. Click on the "Request your archive" button.
  3. Wait for an email from Twitter with a download link.

twstat-d is a D program that generates charts from the data in a Twitter archive. The output is in the form of a single web page, ready for hosting or private viewing.

Prerequisites

To build twstat-d, you need DMD and DUB.

twstat-d requires the mustache-d-dlang-tour package. DUB will automatically download and install this package on the first build.

The web page that twstat-d generates references the following libraries from online sources:

Usage

To build twstat-d, run:

dub build -b release

in the root folder of the project.

That will produce a twstat-d executable, which you may run as follows:

twstat-d tweets.zip out.html

Then view out.html in a web browser to see the charts.

See a sample output page.

Note: All timestamps in the Twitter archive are in UTC. For the Tweets by Hour chart, twstat-d uses the system configured timezone to convert those timestamps to local time.

About

Generate Twitter Stats from a downloaded Twitter archive. (D language version)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published