Skip to content

ocamltter is a Twitter client in OCaml. This client run on the OCaml toplevel interpreter. Then each operation on the client is just a OCaml function and you can develop a twitter program interactively.

License

Notifications You must be signed in to change notification settings

esumii/ocamltter

 
 

Repository files navigation

The OCAMLTTER twitter client

License

    MIT License: see the MIT-LICENSE file

Requirements

  • OCaml >= 4.01.0
  • Cryptokit >= 1.9
  • OCurl(known also as ocaml-curl or curl for OCaml) >= 0.6.0
  • Spotlib >= 2.4.0
  • Type_conv >= 109.60.00
  • Meta_conv >= 1.1.3
  • Tiny_json_conv >= 1.4.0
  • OMake

Installation

  • Install required libraries. OPAM is an easy and highly recommended way to install them semi-automatically.
  • omake

How to use

Run

       $ ./ocamltter

You can use following commands:

       - l();;                 list timeline
       - lc COUNT;;            list timeline (COUNT lines)
       - lu "NAME";;           list NAME's timeline
       - m();;                 list mentions (tweet containing @YOU)
       - u "TEXT";;            post a new message
       - re ID "TEXT";;        reply to ID
       - del ID;;              delete tweet of ID
       - rt ID;;               retweet ID
       - qt ID "TEXT";;        qt ID
       - follow "NAME";;       follow NAME
       - unfollow "NAME";;     unfollow NAME
       - fav ID;;              mark ID as favorites
       - report_spam "NAME"    report NAME as a spam user
       - s "WORD";;            search tweets by a WORD
       - setup ();;            (re)authorize ocamltter
       - let CMD = ...;;       define a your own command CMD
       - help;;                print the help

You may modify the config.ml

  • You can set your twitter id
  • You can set your interesting keywords
  • You can set ignored users

Quit

        #quit;;  or  ^D

Bugs report

About

ocamltter is a Twitter client in OCaml. This client run on the OCaml toplevel interpreter. Then each operation on the client is just a OCaml function and you can develop a twitter program interactively.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 91.1%
  • Coq 7.2%
  • Makefile 1.3%
  • Shell 0.4%