Coder Social home page Coder Social logo

twitter-sentiment-analysis's Introduction

Ironhack Logo

Twitter Sentiment analysis with AWS

Maximilian Sören Pollak

DA FT, RT MAY2021

Content

Important, if you use this.

If you want to use this code, make sure you make a python file in the same directory and call it "secrets_file". Save all your api keys in there. You can also make the file be called something else but then make sure to change the import. Also be aware of a 5 Mil. character Limit on AWS per month.

Project Description

This project is searching the twitter API for a hashtag (that needs to be a stock ticker) in a certain timeframe (max 7days in the past). It will then analyze the sentiment of all of the tweets and give an overall sentiment value. It also will give additional information about the Stock you have choosen, as well as a graph of the open/closing value it was at in the searched timeframe.

Dataset

The Data is obtained through the API of Twitter via the wrapper tweepy, as well as through Amazon's API through the wrapper of Boto3. All Data is obtained once then stored internally in a dataframe. It is not stored for permanent storage somewhere else.

Workflow

  • Decide on a Project
  • Research abot ways to achieve that goal
  • Research about how to obtain the data
  • Mentor meeting
  • Plan Code structure
  • Data Wrangling
  • Perform Analysis
  • Build the website
  • Test everything
  • Write medium article
  • Prepare presentation

Organization

I used my blackboard that I have in my study room, to draw out the overall structure of the project. Then used VS-Code to make a mock-code version of my script. I used a Notepad to keep track of all functions and how they internally work togheter and the order in which they need to be called. You can read more about how it all works in my medium article (link below)

Links

Repository
Medium

twitter-sentiment-analysis's People

Contributors

maximiliansoerenpollak avatar

Stargazers

afro_guts 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.