This project was developed as part of a module within my Bachelor's program at HTW Berlin. It is my first foray into the field of AI. The primary goal of this project was to create a web application that scrapes Twitter data using SNscraper, processes the data through a feature engineering pipeline, and enables analysis or training of a neural network with the data, which is then saved.
- Data Scraping: Utilizing SNscraper to collect Twitter data.
- Feature Engineering Pipeline: Processing the scraped data for analysis and model training.
- Analysis and Model Training: Allowing users to analyze the data or train a neural network.
- Storage: Trained models are saved for future use.
This project was developed as part of my studies at HTW Berlin and represents my initial steps into AI. Therefore, the model results are not significant. Additionally, as of 2024, it is no longer possible to scrape Twitter data, affecting the reproducibility of the project.
Two private YouTube videos are available to demonstrate and explain the setup and functionality of the application:
- Episode 1: Shows the functionality and features of the application.
- Episode 2: Provides a detailed guide on setting up and running the application.
- Start Frontend:
cd frontend_docker make dockerstart
- Access Frontend: Open http://localhost:8081. If this port is occupied, modify the
default.conf
file:server { listen 8081; # Change this port if necessary # Other configurations... }
- Docker Installation Guide: Follow the instructions here.
- Access Backend: Open http://localhost:8000.
- Start Backend:
uvicorn backend.controller.apiController:app --reload
- Custom Port Configuration: If port 8000 is occupied, specify a different host and port:
uvicorn backend.controller.apiController:app --reload --host ${HOST} --port ${PORT}
- Update Origin URLs: If ports are redefined, update the origin URLs in the
apiController
file.
- Stop all running containers:
docker kill $(docker ps -q)
- Remove all created containers:
docker rm -vf $(docker ps -aq)
- Remove all created images:
docker rmi -f $(docker images -aq)
- List all built images:
docker images
- List all containers (including running ones):
docker ps
- Docker
- MySQL
- (Optional) Makefile
- Framework: FastAPI
- Database: MySQL
- Languages and Libraries:
- Python
- Pandas
- SQLAlchemy
- NumPy
- TextBlob
- Torch (PyTorch)
- SNscraper
- Uvicorn
- Matplotlib
- Technologies:
- JavaScript
- HTML
- CSS
- Nginx
- Tools:
- Docker