GithubHelp home page GithubHelp logo

thebadcoder96 / garyveetweets Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 2.37 MB

Sentiment Analysis of Gary Vee's Tweets

Jupyter Notebook 100.00%
python analysis wordcloud snscrape gary-vee-tweets twitter sentiment-analysis numpy pil json nlp nltk jupyter jupyter-notebook

garyveetweets's Introduction

GaryVeeTweets

WorldCloud and Sentiment Analysis of Gary Vee's Tweets in Python. The tweets scraped were from January 1st 2020 until January 12th 2021.

Frameworks

  • PIL - Image processing library
  • Pandas - DataFrame Library
  • Numpy - Mathematical Library
  • Matplotlib - Library used for visualizations
  • Wordcloud - Library used for making wordclouds
  • NLTK - NLP Library
  • Snscrape - Scraper for Social networks services

Installation

Using python's package manager pip to install the dependencies

pip install pandas
pip install PIL
pip install matplotlib
pip install wordcloud
pip install git+https://github.com/JustAnotherArchivist/snscrape.git

Python 3.8 or higher is required for snscrape

How to run

Using snscrape to scrape the tweets from Twitter.

Execute the following command on the terminal

snscrape --jsonl --progress --since 2020-01-01 twitter-search "from:garyvee" > Gary_data.json

--jsonl: Saves as a Json file

--progress: Displays progress every 100 tweets scraped

--since: The time from when the tweets should be scraped

--twitter-search: twitter keyword to search from

The result tweets are saved as the Gary_data.json file.

The GaryVeeWC.ipynb contains the code and outputs for WorldCloud and Senitment Analysis. It should be executed in either Jupyter Notebooks or Google Collab.

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.