Coder Social home page Coder Social logo

twitter's Introduction

                                ********************README**********************

Welcome!

COMPONENTS

main.py - To collect 10K random tweets and store them in MongoDB instance using Twitter Streaming API

read_tweets.py - Reads tweets from Database, finds 5 most frequently used named entities from each of the 10K tweets

news.py - To search news based on tags

sentiment_analysis.py - To perform sentiment analysis using Textblob

twitterdb.zip - file containing collections:

                                lang_tweets.bson    - containing initial 10K tweets
                                
                                words_tweets.bson   - has tweets containing the named entities 
                                
                                words_news.bson     - has news containing the named entities

RUNNING

In read_tweets.py provide CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN and ACCESS_TOKEN_SECRET for twitter application. Import twitterdb Database (twitterdb.zip) into Mongo Client.

For command line, to collect tweets based on NER, invoke:

> python read_tweets.py 

For command line, to collect 10K tweets, invoke:

> python main.py

To run a single server database:

$ sudo mkdir -p /data/db
$ ./mongod
$
$ # The mongo javascript shell connects to localhost and test database by default:
$ ./mongo
> help

OTHER REQUIREMENTS

Uses english.all.3class.distsim.crf.ser.gz and stanford-ner.jar (present in the same folder) for performing named entity recognition using Stanford Tool.

twitter's People

Contributors

aakanksha296 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.