Git Product home page Git Product logo

tweet-freq's Introduction

tweet-freq

A simple Clojure program that outputs the number of tweets published to your timeline by users that you follow. (The output is the number of tweets per user, considered over a period of the last 800 tweets published to your timeline.)

Twitter's statuses/home-timeline resource is used to access tweet data. (Twitter limits the number of tweets that can be obtained using this resource to 800.)

Usage

Note: Requires Leiningen 2.

Edit make-oauth-creds in ./src/tweet_freq/core.clj with the the requisite OAuth details (*app-consumer-key*, *app-consumer-secret*, *user-access-token*, *user-access-token-secret*). Note: you will need to create a new Twitter app (or use an existing app). See all of your Twitter apps (or create a new one) at https://dev.twitter.com/apps.

Install dependencies:

$ lein deps

Run tests:

$ lein midje

Run program:

$ lein run

The output will be a table, in the following format:

===========================
Username        | Frequency
===========================
jeffjarvis      | 84
mathewi         | 42
umairh          | 41
cnnbrk          | 29
Lessien         | 27
JasonHirschhorn | 24
TIME            | 18
FastCompany     | 14
... snip ...
===========================

License

Copyright © 2012 Michael J Russo.

Distributed under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.