GithubHelp home page GithubHelp logo

yasulab / interesting-tweet-ranking Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 108 KB

Given your (or someone's) twitter account, twitter list and its owner, find interesting tweets from the list for you (or for someone).

Home Page: http://yasulab.jp/

Shell 10.91% Python 89.09%

interesting-tweet-ranking's Introduction

Description
-----------

This is a program that finds interesting tweets for you.
Given your (or someone's) twitter account and twitter list
with its owner, the program finds interesting tweets from
the list for you (or for someone).

The program includes a function that translates Japanese into
English, so Japanese and English users can use this program.

This program finds the interesting tweets in the follwoing ways:

1. Get recent tweets by you.
2. Translate them into English (if they are Japanese)
3. Get the tweets in your (or someone's) list.
4. Translate them into English (if they are Japanese)
5. With the tweets by you, score each tweet in the list.
6. Show high score tweets, which would be interesting to you.

For 1. and 3., to get tweets, the program uses lxml.
So, you need to install lxml for running this program

For 2. and 4., this program uses Google Translate API.
The API has limited number of use. So, if the program returns,
HTTP Error 403, it means you exceeded the number of use.

For 5. and 6., this program assumes that you will be interested
in the tweets that has similar words you recently tweets.

In other words, your recent tweets are used as training data,
and with the result of training, score each tweet in the list.
So, if a tweet has a high score, it means that it might be the
tweet you are interested in because the tweet includes
similar words to what you recently tweeted.



Requirement
-----------

- lxml
-- Download: http://lxml.de/index.html#download
-- Or, type following command to download.

   $ git clone https://github.com/lxml/lxml.git lxml

   
Usage
-----

  $ sh main.sh TWITTER_ACCOUNT LIST_OWNER LIST_NAME


Local Test
----------
For those who want to see how this program works quickly,
please type the following command, which does not require
any things to run the program. 

  $ sh local-test.sh

Get Latest Code
---------------

Type following command:

  $ git clone git://github.com/yasulab/Interesting-Tweet-Ranking.git

Or, visit the following site:

  https://github.com/yasulab/Interesting-Tweet-Ranking

  
Sample Output 1
---------------

$ sh main.sh yasulab yasulab watch

Getting recent tweets by yasulab... Done.
Translating the tweets into English... Done.
Getting yasulab's watch list... Done.
Translating the tweets into English... Done.
Generating the interesting tweet ranking for yasulab...

 1: Google Chrome's Emotional Ad http://goo.gl/fb/wvlDD

 2: Android apps on PlayBook eyes-on (video) http://engt.co/mpgS3U

 3: A More Obvious Sign Out Link http://goo.gl/fb/dHho8

 4: Original: Xubuntu 11.04: Solid, Sleek, and Speedy http://bit.ly/jMthZL # linux

 5: Spotify launches music download service with iPod sync, puts iTunes on notice http://engt.co/mSJK0j

 6: Nintendo Wii Vitality Sensor still coming to a hand near you, says Iwata http://engt.co/mCg7uC

 7: Nokia Chairman Jorma Ollila to step down next year, complete exodus of old guard http://engt.co/l12Lad

 8: Pioneer Computers DreamBook ePad 10 Plus Android Tablet: Pioneer Computers has once again expanded its line of A. .. http://bit.ly/kf3oS8

 9: Free iPhone app of the day - Spartans vs Vikings: News from DailyMobile.se: The vikings have gone back in time a. .. http://bit.ly/j0nMYE

10: We r happy to support our Japan colleagues! Linus to headline LinuxCon Japan. LF donating funds to relief efforts. Http://bit.ly/iAzMp3

11: Graphic: Never Mind About Free Apps, Sales Will Grow 77 Percent This Year: Developers that are bemoaning the dom ... http://bit.ly/kjytjW

12: Muve Music now available in all Cricket markets: Cricket has been steadily adding new markets for its Muve Music ... http://bit.ly/mPfDLB

13: T-Mobile Lights Up More HSPA + Markets: T-Mobile today announced via its official Twitter account that the market ... http://bit.ly/mowfxt

14: Amazon launches MyHabit.com to compete with Gilt: On Tuesday evening, Amazon will take the wraps off of MyHabit .... http://bit.ly/mNBg3A

15: Congrats to this week's # linuxcon Twitter / identi.ca winner @ smaffulli: "Linux is mine and yours and theirs" # linux # funambol

16: To better understand Google, read Steven Levy's "In the Plex". It's a really great book. Http://goo.gl/ITIaR

17: We r giving away one free # linuxcon pass for every Video Contest submission. That's a $ 500 value. Submit here: http://bit.ly/fAvOp7

18: Updated: iOS 5 rumours: what you need to know: We're expecting big things from Apple this year: the iPhone 5 is ... http://bit.ly/g7hBhY

19: This wk's # linuxcon contest: where were u when u first discovered # linux? Post using # linuxcon and win free pass to event! Winner Monday!

20: "We designed Google to be the place where the kind of people we wanted to work here would work for free." (Urs Holzle) http://goo.gl/P1Bw0

Done.
	 

Sample Output 2
---------------

$ sh main.sh billgates yasulab watch

Getting recent tweets by billgates... Done.
Translating the tweets into English... Done.
Getting yasulab's watch list... Done.
Translating the tweets into English... Done.
Generating the interesting tweet ranking for billgates...

 1: Google Chrome's Emotional Ad http://goo.gl/fb/wvlDD

 2: Android apps on PlayBook eyes-on (video) http://engt.co/mpgS3U

 3: A More Obvious Sign Out Link http://goo.gl/fb/dHho8

 4: Original: Xubuntu 11.04: Solid, Sleek, and Speedy http://bit.ly/jMthZL # linux

 5: Spotify launches music download service with iPod sync, puts iTunes on notice http://engt.co/mSJK0j

 6: Nintendo Wii Vitality Sensor still coming to a hand near you, says Iwata http://engt.co/mCg7uC

 7: Nokia Chairman Jorma Ollila to step down next year, complete exodus of old guard http://engt.co/l12Lad

 8: Pioneer Computers DreamBook ePad 10 Plus Android Tablet: Pioneer Computers has once again expanded its line of A. .. http://bit.ly/kf3oS8

 9: We r happy to support our Japan colleagues! Linus to headline LinuxCon Japan. LF donating funds to relief efforts. Http://bit.ly/iAzMp3

10: Free iPhone app of the day - Spartans vs Vikings: News from DailyMobile.se: The vikings have gone back in time a. .. http://bit.ly/j0nMYE

11: Graphic: Never Mind About Free Apps, Sales Will Grow 77 Percent This Year: Developers that are bemoaning the dom ... http://bit.ly/kjytjW

12: Muve Music now available in all Cricket markets: Cricket has been steadily adding new markets for its Muve Music ... http://bit.ly/mPfDLB

13: T-Mobile Lights Up More HSPA + Markets: T-Mobile today announced via its official Twitter account that the market ... http://bit.ly/mowfxt

14: Amazon launches MyHabit.com to compete with Gilt: On Tuesday evening, Amazon will take the wraps off of MyHabit .... http://bit.ly/mNBg3A

15: We r giving away one free # linuxcon pass for every Video Contest submission. That's a $ 500 value. Submit here: http://bit.ly/fAvOp7

16: To better understand Google, read Steven Levy's "In the Plex". It's a really great book. Http://goo.gl/ITIaR

17: Congrats to this week's # linuxcon Twitter / identi.ca winner @ smaffulli: "Linux is mine and yours and theirs" # linux # funambol

18: Updated: iOS 5 rumours: what you need to know: We're expecting big things from Apple this year: the iPhone 5 is ... http://bit.ly/g7hBhY

19: This wk's # linuxcon contest: where were u when u first discovered # linux? Post using # linuxcon and win free pass to event! Winner Monday!

20: "We designed Google to be the place where the kind of people we wanted to work here would work for free." (Urs Holzle) http://goo.gl/P1Bw0

Done.
	 

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.