MyNixOS website logo
Description

Commandline Twitter feed archiver.

`hs-twitterarchiver ` is a tool for generating an archive of a user's Twitter feed, in a file on a local computer using JSON format.

Introduction

This script will access your Twitter stream and create a text file with all the past tweets in JSON format. It also supports updating of the text file in subsequent runs.

The Twitter API currently limits access to a maximum of 3200 tweets in your timeline. Hence if you have tweeted more often than that, you will not be able to retrieve beyond 3200 past tweets.

Installation

You need to have Haskell (GHC 6.10 or 6.12 should do) and Cabal installed.

cabal install hs-twitterarchiver

Examples

For all options, run hs-twitterarchiver -h

Here is an example of how I use the script to archive all my tweets from account vyom to a file called vyom.json. This is also the default behavior when hs-twitterarchiver is called without any arguments.

runhaskell twitterarchiver.hs -u vyom -f vyom.json

If a file called vyom.json already exists from a previous run, only the latest Tweets after the previous run will be fetched and the file will be updated.

If you have a private stream, you can call the script with a -p argument and you will be prompted for a password. The script will then automatically use HTTP Basic authentication when calling the Twitter API.

runhaskell twitterarchiver.hs -u divya -f divya.json -p
Enter Twitter Password :

Feedback

Mail me any feedback you have at [email protected].

Metadata

Version

0.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows