Skip to content

Fetch trending topic near the given location, fetch tweets related to the same of the specified language and create summary and upload that on youtube

Notifications You must be signed in to change notification settings

Melon-Rusk/Summarize-Twitter-Trending-Public

Repository files navigation

Fetch Trending Topics from Twitter and Create a Video for YouTube

Introduction

  • 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.

Dependencies

  • Tweepy
  • geocoder
  • nltk
  • transformers
  • gtts
  • cv2 (OpenCV)
  • moviepy
  • googleapiclient

How to Use

  1. Clone the repository: ```console git clone https://github.com/Melon-Rusk/Summarize-Twitter-Trending-Public
2. Navigate to the project directory: ```console
cd Summarize-Twitter-Trending-Public
  1. Install the dependencies: ```console pip install -r requirements.txt
4. Update the credentials in the config file.
5. Run the project: ```console
python main.py

Fetch Trending Topics

  • Fetch Trending Topics for the given location
  • Library used: Tweepy, geocoder

Create summary for the each trending topics

  • 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 Video

  • 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

Concatenate Videos

  • For merge video for each trending topic in to one
  • Library/modules used: moviepy

Upload video on YT

  • Using Twitter trending topics as Tags
  • And summary as description
  • Using Youtubes's library upload video on youtube
  • Library/Modules used: googleapiclient

Update Credentials in config to test it

Refrences Code used from: -text_processing.clean_text.py (used almost as it is)

About

Fetch trending topic near the given location, fetch tweets related to the same of the specified language and create summary and upload that on youtube

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published