Skip to content

gordonkwokkwok/Twitter-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-Sentiment-Analysis

Objective

  1. Use Python to develop a Twitter data crawler through Twitter's APIs to collect tweets data.
  2. Ddesign the SQL server, database schema, tables and entity-relationship model.
  3. Perform sentiment analysis on tweet data.

Prerequisite

Use "!pip install --" command to install the following libraries:

!pip install pandas
!pip install sqlalchemy
!pip install transformers
!pip install pymysql
!pip install TensorFlow
!pip install snscrape
!pip install matplotlib
!pip install emoji
!pip install wordcloud
!pip install geopandas
!pip install spacy 
!pip install pysentimiento
!pip install radar
!pip install ipywidgets
!pip install pandas-profiling

Database Schema

The scraped twitter data will be loaded and stored in a MySQL database table:

  • Username
  • Date
  • TweetURL
  • User
  • Source
  • Location
  • Tweet
  • Likes_Count
  • Retweet_Count
  • Quote_Count
  • Reply_Count

Data Visualisation

Pie Chart

螢幕截圖 2022-10-09 下午9 25 33

Word Cloud

螢幕截圖 2022-10-09 下午9 26 21 螢幕截圖 2022-10-09 下午9 26 56 螢幕截圖 2022-10-09 下午9 27 26

100% stacked column chart

螢幕截圖 2022-10-09 下午9 24 45

Contributers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published