/TTInspire

TTInspire is a Python app that uses YouTube API and OpenAI's GPT-3.5 model to generate new video ideas based on popular videos on a given topic. Enter a topic and get three new, creative ideas to inspire content creators on their YouTube channels.

Primary LanguagePythonMIT LicenseMIT

Türkçe BENİOKU

TTInspire

TTInspire is a Python application that generates new video ideas on a given topic, based on the popular videos on YouTube. It utilizes the Google's YouTube API and OpenAI's GPT-3.5 language model to suggest creative and innovative video concepts. Simply enter the topic you're interested in, and the application will search for popular YouTube videos on that topic and generate three new video ideas based on the titles. The video ideas are intended to inspire and stimulate the imagination of content creators looking for fresh and original ideas for their YouTube channels.

Requirements

You can install the necessary modules by running this code in the terminal.

pip install openai google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client

How to obtain a YouTube API key?

To obtain a YouTube API key, you need to follow these steps:

1-Go to the Google Developers Console (https://console.developers.google.com/)
2-Create a new project by clicking on the "Select a Project" dropdown menu at the top of the page and then clicking on "New Project".
3-Give your project a name and click on "Create".
4-Once your project is created, go to the "APIs & Services" dashboard and click on "Library" on the left-hand side.
5-Search for the "YouTube Data API v3" and click on it.
6-Click on the "Enable" button.
7-Next, click on "Create Credentials" and select "API key".
8-Your API key will be generated, and you can copy and paste it into your code.
Click here for the tutorial video

How to obtain an OpenAI API key?

To obtain an OpenAI API key, you need to follow these steps:

1-Go to the OpenAI website and create an account if you don't already have one.(https://openai.com/)
2-Once you're logged in, navigate to the "API" section of your account dashboard.
3-Click on the "Create API key" button.
4-Select the API plan that you want to use (e.g. the free plan or a paid plan).
5-Fill out the required information, such as the name of your API key and the intended use case.
6-Review the terms and conditions, and check the box to agree to them.
7-Click on the "Create API key" button to generate your key.
8-Copy the API key and save it in a secure location, such as a password manager or a file on your computer.
9-Your API key will be generated, and you can copy and paste it into your code.
Click here for the tutorial video

Set the YouTube API key and OpenAI API key in the code

setapikey

Have Fun!

howtotie

If you want to use Tkinter GUI

Requirements

Installing Tkinter with Pip Once you have made sure that you have all the prerequisites installed and also that there is no built-in tkinter with your python package, simply install the Tkinter using the following pip command:

  pip install tk

  pip install tkinter

Screenshots

App Screenshot