Skip to content

tgll/datamining_twitterXmongodb

Repository files navigation

datamining_twitterXmongodb

Data Mining of tweets withe MongoDB and Twitter API

Goal

We want to be able to extract tweets based on one or several specific hastags from twitter to then analyse them.

To achieve this goal we will use this jupyter notebook as a template and go through these steps:

  • Install MongoDB
  • Get your personal credentals from the Twitter API
  • Select some hastags related to a current event
  • Use the Stream API to collect tweets to create our dataset
  • Analyse the collected tweets

Requirements

  • The file .keys.json should look like this but with your tokens:

    [{
        "consumer_key": "xxxxxxxxx",
        "consumer_secret": "xxxxxxxxx",
        "access_token": "xxxxxxxxx",
        "access_token_secret": "xxxxxxxxx"
    }]

Useful sources: