- Damian Bisewski
- Marian Buzak
- Analysis of contents published by a given Twitter user
- Analysis of a given Twitter user's interactions with other users
- Statistics about a given Twitter user
Use case diagram of the application
- Analysis of vocabulary used by Twitter users (as Twitter is one of the most popular social media)
- Analysis of interconnections between users (are there more closed bubbles or the circulation of thoughts and ideas is broader)
- Analysis of the user's behavior (frequency of writing or the number of reactions)
Responsibility | Person |
---|---|
Data analysis | Damian Bisewski |
Frontend | Marian Buzak |
Web-scraping | Damian Bisewski |
Python:
- Web scraping - twint
- UI - tkinter
- Wordcloud creation - wordcloud
- Text lemmatization - spacy
- Additionally pandas, matplotlib.pyplot
- Twitter username field, searched word and time frames of searched tweets
- Functionality choice field
- Pressing a button starts running the app and displays the result
- Additional buttons enable the user to save the results as a file and to save the found tweets as a CSV file
For each functionality the app displays:
- Most frequently used words: WordCloud with most frequently used words (except the stopwords saved in stopwords.txt)
WordCloud generated for the account Pekao_Analizy
- Interconnections network of the user: Twitter interconnections network for a user displayed as a graph
Interconnections network generated for Elon Musk
- Statistics about the user: Graphs presenting the maximum, average and median of a given user's tweets' likes and retweets, the number of tweets created grouped by the hour of creation and the most frequently used hashtags Hours (UTC+1) during which POTUS sent the last 100 tweets
The maximum and average popularity of POTUS's last 100 tweets
The app enables conducting experiments for tweets written in Polish and English
- The app is started and requests from the user to give:
- searched Twitter account's username
- time frames of searched tweets
- the chosen functionality
- In case of no existing account with a given username the app should display an error message
- All results given by the app should have the possibility to be saved as PNG or CSV files. In order to save the results, the user should press a dedicated button.
- In order to get the source code of the application you need to write in Linux Terminal or Windows Command Line:
git clone https://github.com/DamianBisewski/tweenspector
- To install all libraries needed to run TweeNspector, after downloading the source file you need to write in Linux Terminal or Windows Command Line:
pip install -r requirements.txt
or
pip3 install -r requirements.txt
- If you run the app in Linux operating system, after installing the requirements you should write in Linux Terminal:
pip install python-tk
or
pip3 install python-tk
- To run the application, in Windows Command Line or Linux Terminal in the app folder you need to write:
python MainApplication.py
or
python3 MainApplication.py