Skip to content

Web Mining project in which Descriptive Statistics and NLP techniques are used to analyze the behavior of a Twitter account and the content of their respective tweets.

License

Notifications You must be signed in to change notification settings

ansegura7/TwitterAnalytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Analytics

Web Mining project in which descriptive statistics and NLP techniques are used to analyze the behavior of a Twitter account (my personal one) and the content of their respective tweets.

WordCloud

Data

All tweets collected from a specific account using the Twitter API.

Performed Analysis

  1. Twitter Account Analytics
  2. Store last tweets in MongoDB

In the following folder you can see the results of the previous analyzes.

Dependencies

The project was carried out with the latest version of Anaconda on Windows.

To install this package with conda run one of the following:

to create the virtual environment:

conda env create -f twitter-analytics-env.yml

to activate it, then run:

conda activate twitter-analytics-env

The specific Python 3.7.x libraries used are:

# Import util libraries
import tweepy
import random
import numpy as np
import pandas as pd
import yaml
import warnings
import calendar
import time
from datetime import date
from PIL import Image
from collections import Counter

# Import NLP libraries
import re
import spacy.lang.es as es
import spacy.lang.en as en
from textblob import TextBlob
from wordcloud import WordCloud

# Import plot libraries
import matplotlib.pyplot as plt

# Save tweets into MongoDB
from pymongo import MongoClient
from requests.exceptions import Timeout, SSLError, ConnectionError
from requests.packages.urllib3.exceptions import ReadTimeoutError, ProtocolError

Documentation

Below, some useful and relevant links to this project:

Contributing and Feedback

Any kind of feedback/suggestions would be greatly appreciated (algorithm design, documentation, improvement ideas, spelling mistakes, etc...). If you want to make a contribution to the course you can do it through a PR.

Author

  • Created by Andrés Segura-Tinoco
  • Created on May 24, 2020
  • Updated on Aug 16, 2021

License

This project is licensed under the terms of the MIT license.

About

Web Mining project in which Descriptive Statistics and NLP techniques are used to analyze the behavior of a Twitter account and the content of their respective tweets.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published