This project performs sentiment analysis of comments using the OpenAI API by entering the URL of a product on Trendyol and the number of comments the user wants. It pulls the number of comments the user wants and determines whether each comment is positive, negative or neutral. The results are printed to an Excel file.
To use the project, you will first need an OpenAI API key. To get the key, you need to register on the OpenAI website. Afterwards, you can clone the project from GitHub and run it.
Click here to see the sample output.
- Clone the repository:
git clone https://github.com/yusufesatt/semantic-analysis-of-product-reviews.git
cd semantic-analysis-of-product-reviews
- Create Virtualenv (Optional):
python -m venv semantic_env
# Ubuntu & MacOS
source semantic_env/bin/activate
# Windows
semantic_env/Scripts/activate
- Install the required dependencies:
pip install -r requirements.txt
The whole process will take place in one line
python app.py
If you encounter issues or have suggestions for improvements, please report them on the GitHub repository 🚀.
This project is licensed under the MIT License.