/tweets-from-sector-service

Service to return popular tweets from companies in a sector.

Primary LanguageJavaScript

tweets-from-sector-service

Service to return popular tweets from companies in a sector.

index.js

sets up route to query for strings at '.com/{sector}'

yahoo.js

makes a series of calls to yahoo's business api.
https://code.google.com/p/yahoo-finance-managed/wiki/CSVAPI
retrieves industries in queried sector (sectors passed in by string: https://code.google.com/p/yahoo-finance-managed/wiki/enumSectors )
--> retrieves companies in retrieved industries
--> orders companies by market cap
returns top 100 companies in a sector

twitter.js

queries twitter for tweets containing company names and orders them by popularity
popularity == retweets + favorites
returns top 50 tweets about company
obj -> {
username, tweet, retweets, favorites
}