- This project allows you to fetch trending topics from Twitter for a given location, create a summary for each trending topic, generate a video from the summary using Google Text-to-Speech and OpenCV, concatenate all the videos for the trending topics into one, and upload the final video to YouTube.
- Tweepy
- geocoder
- nltk
- transformers
- gtts
- cv2 (OpenCV)
- moviepy
- googleapiclient
- Clone the repository:
git clone https://github.com/Melon-Rusk/Summarize-Twitter-Trending-Public
- Navigate to the project directory:
cd Summarize-Twitter-Trending-Public
- Install the dependencies:
pip install -r requirements.txt
- Update the credentials in the config file.
- Run the project:
python main.py
- Fetch Trending Topics for the given location
- Library used: Tweepy, geocoder
- Fetch Tweets related to text (from last 2hr)
- Filter tweets of specified language
- Clear tweets remove emojis, urls, punctutations, stopwords
- Generate Sentiment
- Create Extract summary from the text
- Clean text remove ascii characters and remove urls
- Create abstract summary from the extracted summary
- Library module/used: Tweepy,nltk,transformers
- Generate Audio from text using google text to speech
- Generate Image from text using open cv
- Generate Video using audio and image
- Library/modules used: gtts,cv2 (opencv), moviepy
- For merge video for each trending topic in to one
- Library/modules used: moviepy
- Using Twitter trending topics as Tags
- And summary as description
- Using Youtubes's library upload video on youtube
- Library/Modules used: googleapiclient
Refrences Code used from: -text_processing.clean_text.py (used almost as it is)