0xhaven / tweetcrawl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tweetcrawl

Consumes Twitter sample stream to track the following:

  1. Total number of tweets received
  2. Average tweets per hour/minute/second
  3. Top emojis in tweets
  4. Percent of tweets that contains emojis
  5. Top hashtags
  6. Percent of tweets that contain a url
  7. Percent of tweets that contain a photo url (pic.twitter.com, pbs.twimg.com , or instagram)
  8. Top domains of urls in tweets

Exposes REST API to query this information

Instructions

  1. Create Twitter app with Sampled Stream preview active.
  2. Set Twitter CUSTOMER_KEY and CUSTOMER_SECRET environment variables.
  3. Run go run .
  4. Send HTTP GET to various endpoints:

About


Languages

Language:Go 100.0%