Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedesen/twitter-highscore
A local node app which is showing highscores based on a twitter timeline
https://github.com/pedesen/twitter-highscore
Last synced: about 1 month ago
JSON representation
A local node app which is showing highscores based on a twitter timeline
- Host: GitHub
- URL: https://github.com/pedesen/twitter-highscore
- Owner: pedesen
- License: mit
- Created: 2015-09-17T09:56:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-14T09:21:01.000Z (about 9 years ago)
- Last Synced: 2024-10-25T06:50:25.258Z (3 months ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twitter-highscore
A local node app which is showing highscores based on a twitter timeline## Getting Started
Create a new Twitter App here: https://apps.twitter.com/
Create a file named config.json and paste in your twitter credentials from the link above (see [config_example.json](config_example.json))
Add some more configuration properties to config.json:
* *screen_name*: check this user's twitter feed for highscore tweets
* *since_id*: the id of a tweet since tweets should be fetched
* *regex*: a regular expression which returns a user name as the first and the score as the second group
* *num_top*: the first x users should appear in the highscore list
* *from_date*: filter tweets which are posted earlier than this date. Format: "YYYY-MM-DD HH:MM"
* *to_date*: filter tweets which are posted later than this date. Format: "YYYY-MM-DD HH:MM"
* *refresh*: the refresh rate of the highscore list in secondsRun the development server (don't use in production!!):
`npm install`
`npm run start`
This servess all necessary files on port 3000, so you can see the highscores in your browser: `http://localhost:3000`
**Please note:** There is a limit of requests to the Twitter API! Only 180 requests (200 tweets each) are allowed per 15 minutes ([more info](https://dev.twitter.com/rest/reference/get/statuses/user_timeline)). You can reduce the amount of requests by setting the *since_id* property to the latest possible tweet.