/twitter-recommender-sentiment-analysis

Based upon its dataset it recommend people with similar interest.

Primary LanguagePythonMIT LicenseMIT

For this repo, Copyright (c) 2023 Rohan Anand (anand00rohan@gmail.com), rohan472000 on GitHub

twitter-recommender-sentiment-analysis

This is a Python project that recommends Twitter users to follow based on their tweets and performs sentiment analysis on their tweets. The project uses the Tweepy library to access the Twitter API and the TextBlob library to perform sentiment analysis.

This project has very small dataset(2000), so prediction will not be that much accurate but you (viewer) can contribute to it and make it more accurate.

Input

Screenshot (135)

Output

Screenshot (136)

Accuracy and scores

Screenshot (137) Screenshot (138)

Usage

When you run the python main_app.py file, the program will prompt you to enter a Twitter username. The program will then retrieve the user's tweets, perform sentiment analysis on the tweets, and recommend other Twitter users to follow based on similar tweets and sentiment analysis.

The program also saves the recommended users and their sentiment scores to a CSV file called updated_reftweets.csv.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Please open an issue or pull request if you have any suggestions or bug reports.

Acknowledgments

This project was inspired by the Tweepy documentation and the TextBlob documentation. Thanks to the developers of these libraries for their hard work!

Contact

If you have any questions or comments, please feel free to contact me at anand00rohan@gmail.com.