Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Youtube API #2

Open
turpez opened this issue May 19, 2021 · 19 comments
Open

Problem Youtube API #2

turpez opened this issue May 19, 2021 · 19 comments

Comments

@turpez
Copy link

turpez commented May 19, 2021

I don't know where to put the youtube api key

Traceback (most recent call last):
File ".\main.py", line 65, in
api = Api(api_key=youtube_api_key)
NameError: name 'youtube_api_key' is not defined

@benkiller47
Copy link

Can you give me the config file, it seems to be missing from the github folder?

Thank you very much

@turpez
Copy link
Author

turpez commented May 28, 2021

How's the config file ?

@turpez
Copy link
Author

turpez commented May 28, 2021

What do you need ?

@zbeucler2018
Copy link

In your main.py file at line 65,


api = Api(api_key="your api key here")

@turpez
Copy link
Author

turpez commented May 28, 2021

if name == 'main':
api = Api(api_key=youtube_api_key)
log.debug("API inited")
do = True

@turpez
Copy link
Author

turpez commented May 28, 2021

line 64 to 67

@zbeucler2018
Copy link

if name == 'main':

api = Api(api_key=youtube_api_key)

log.debug("API inited")

do = True

Replace YouTube_api_key with your YouTube API key on line 65 and I believe it should work. Do you know how to get a YouTube api key?

@turpez
Copy link
Author

turpez commented May 28, 2021

I put them and its me but name error is not defined

@turpez
Copy link
Author

turpez commented May 28, 2021

must go to the google cloud and have the youtube key is that?

@zbeucler2018
Copy link

I put them and its me but name error is not defined

You replaced youtube_api_key with your YouTube api key and you are still getting the same name error? It is still undefined?

@turpez
Copy link
Author

turpez commented May 28, 2021

yes

@turpez
Copy link
Author

turpez commented May 28, 2021

he tells me that the key is not defined

@zbeucler2018
Copy link

must go to the google cloud and have the youtube key is that?

Yes I believe you get the YouTube API keys from Google. This site should help https://developers.google.com/youtube/v3/getting-started

@turpez
Copy link
Author

turpez commented May 28, 2021

I don't know why my key is not defined

@turpez
Copy link
Author

turpez commented May 28, 2021

Do you have a solution?

Do you have the same problem?

@benkiller47
Copy link

How's the config file ?

Is isn't there supposed to be a config file inside of the folder? in github you can only download 4 files , souldn't it have a config file also?

It gives me this error :
python3 main.py
Traceback (most recent call last):
File "/home/mrdev/tiktok/TikTok-content-farm/main.py", line 4, in
from config import *
ModuleNotFoundError: No module named 'config'

Thank you

@turpez
Copy link
Author

turpez commented May 28, 2021

testP

@turpez
Copy link
Author

turpez commented May 28, 2021

In my file there is that his

@thanhtuvietnam
Copy link

can you give me a youtube api key, i don't have it but i really want to try your sripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants