8000 GitHub - jleh/tweetsWithLocation: Get tweets with geolocation from Twitter Rest API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jleh/tweetsWithLocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tweetsWithLocation

Get tweets with geolocation from Twitter Rest API.

App makes call to Twitter search api and filters tweets with geolocation from request. Fetched tweets are cached and stored to Redis.

Configuration

App is configured with enviroment variables:

Name Value Default value
REDIS_URL Redis DB URL -
QUERY_CACHE_TIME Minimum time between Twitter API calls in seconds 60
ALLOW_ORIGIN Access-Control-Allow-Origin header value '*'
TWITTER_SEARCH_STRING Twitter search query parameter (Read more) 'Helsinki'
TWITTER_CONSUMER_KEY App consumer key -
TWITTER_CONSUMER_SECRET App secret key -

How to run

npm install
npm start

Open http://localhost:3000/

There is also http://localhost:3000/saved endpoint which returns tweets from cache without calling the api.

For now it's not possible to clear cache with this app. Tweets are stored in tweets hash.

About

Get tweets with geolocation from Twitter Rest API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0