Welcome to YouTube Shorts
To deploy this Program Follow the following steps.
- Clone this repository.
- Install the required modules in the requirements.txt
- openai
- gtts
- openai_whisper
- google-api-python-client
- oauth2client
- Get the OpenAI API Key.
- Goto "platform.openai.com"
- Signup for an account.
- After creating account, click on your profile icon(top-right corner) and goto "View API Keys".
- Create a new secret key.(Be sure to copy it, you cannot view it later).
- Insert the OpenAI API Key into utils/script.py.
- Replace "your-api-key" in line 3 with your API Key.
- Obtain the Oauth Key from YouTube Data API.
- Goto "console.cloud.google.com"
- Click on "Select a Project" in the top bar.
- Now create a new project.
- After project is created, goto "APIs & Services" in the left pane.
- Goto to Library.
- Search for "Youtube Data API V3". Enable that API.
- Goto "OAuth CONSENT SCREEN".
- Click on "External" and Create.
- Write "App Name", choose the "User Support Email", type the same email in "Developer Contact Information" and click "save and continue".
- Click on "Add or Remove Scopes", Search for "upload", click on the item in the popup, tick the checkbox and click on "update".
- Click on "Save and Continue".
- Click on "Add Users", enter the email on which you created the channel and click "Add". Click "Save and Continue".
- Click on "Back to Dashboard".
- Click on "Credentials". Click on "Create Credentials" and choose "OAuth Client ID".
- Choose the "Application Type" to "Desktop", Name the key, click on Create "Create". Download the JSON File.
- Replace the "client_secret.json" with your own file.
- Now run the "main.py" i. When you run it for first time it gives you link for authentication from the browser. Copy that link and paste in the browser and give access to it.