Skip to content

Hack to add rich contextual information to Time Series Graphs (specifically polls)

Notifications You must be signed in to change notification settings

EliFinkelshteyn/PollWiser

Repository files navigation

PollWiser

This project is winner of Dataweek hackathon in 2012. PollWiser produces social context for poll results.

Getting Started

There are several steps involved before PollWiser can be used.

prepare twitter data

  1. crawl twitter history using twitter_crawler/crawler.py

    Currently, the crawler is not fully autonomous, due to the fact we're using the free search API and not firehose. You need to modify the two lines setting search api url and change the dates to the target date + 1 (i.e. to crawl tweets from Sept 26, you need to change the date to 2012-09-27) And to crawl another day, you have to modify the date in the url every time, the crawler works incrementally.

  2. the crawler will generate result.shelve file, copy this file to Sentiment directory and rename it as source.result.

  3. generate sentiment result for crawled data by running Sentiment/sentiment.py

  4. sentiment.py will generate a file called sentiment_result.shelve

  5. run parse_result.py, this will generate a file called parsed.shelve based on source.shelve and sentiment_result.shelve

  6. copy parsed.shelve to FirebaseUploader directory and rename it to parsed.data

  7. go to firebase data store in browser and delete tweeter_data_2

  8. run FirebaseParsedTweetUploader.py to upload parsed.data

prepare poll data

TODO: add steps for preparing poll data

About

Hack to add rich contextual information to Time Series Graphs (specifically polls)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published