Skip to main content

Data Analysis using Twitter API

Overview:
In this project we concentrated on topics such as:
  • Which topic is trending, 
  • Tweets relating a hash tag
The data in twitter formulates a rich source which can be used for retrieving information.
We can use this data in many ways for example:
  • Finding trends related to a specific keyword 
  • To gauge brand sentiments. 
  • To collect feedback of new brands, products and their services.
Tools Needed: 

We used Python programming language. The following tools and packages are must in order to accomplish this project.
  • Python 2.7
  • Packages : pip, pandas, Tweepy, matplotlib, jupyter
  • Jupyter Notebook
  • Access tokens with which twitter gives permission to access their API.
Connecting to twitter API: 

Twitter requires all requests to use OAuth for authentication. We will assign the keys to their respective variables for use, and also connect to the Twitter API using "tweepy". The commands are shown below:

consumer_key = '<Your Consumer Key>' consumer_secret = '<Your Consumer secret Key>' access_token = '<Your Access Token>' access_token_secret = '<Your Access Token Secret>'auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth) 

Finding Trends: 









Downloading the data in the trend that we chose:










Data Manipulation:




Popular posts from this blog

Ride Buddy, a Carpooling mobile application for Android users

Our motto: “Get or give a ride just a click away” inspired us to build “RIDE BUDDY”, a real-time carpooling and ride sharing mobile application. There are many universities where the students face a common problem of commuting to their desired location, as many of them cannot afford to rent or have their own car. Most of the universities do not have public transportation, cab facilities like “Uber” and “Lyft”, which should be treated as a major problem.                  This application will ease the commuting problems of all students. “Ride Buddy” would not only serve students who need a ride but will also allow students who have cars to help others. A student who has a car and willing to give a ride can post that he/she is going to a particular destination at a particular time, a student who needs a ride can look in to the different rides available and pick one contact that student who is giving a ride . A student can request a ride to a particular place and time. Download Rid

University Events Portal

TAMUC Events Portal:  Description :  In this web application, students can create events for a scheduled time and venue and attend the events. Also, students can edit and delete the events as well. These are the following Technologies used to develop this application:  Text Editor ( Visual Studio Code ) MongoDB mLab JQuery AJAX NPM Node JS GIT Shell Deployed this application in MongoDB Server provided my mLab. Wrote commands in GIT shell in order to access the MongoDB Server. When we issue the com­mand $ npm start from the root direc­tory of our nodejs project, node will look for a scripts object in ourpackage.json file. If found, it will look for a script with the key start and run the com­mand spec­i­fied as its value. A database which we create in mLab Output:  Provided users to sign up using the 'create an account' feature in the application as shown below.  Figure-1: Home page of the Portal All the Events as displayed in th