JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
http://pytubefix.rtfd.io/
MIT License
454 stars 67 forks source link

Please open https://www.google.com/device and input code NGY-GKK-CBWC Press enter when you have completed this step. #160

Closed Morteza820 closed 1 month ago

Morteza820 commented 1 month ago

i got this bug now

Please open https://www.google.com/device and input code NGY-GKK-CBWC Press enter when you have completed this step.

JuanBindez commented 1 month ago

This is not a bug, it's just that you have to do this step by step to be able to do what you want

Morteza820 commented 1 month ago

this is my code:

elif text.startswith(".mus "): try: name = text.replace(".mus ", "") yt = YouTube(name, use_oauth=True, allow_oauth_cache=True, on_progress_callback = on_progress) print(yt.title) ys = yt.streams.get_audio_only() ys.download(mp3=True) # pass the parameter mp3=True to save in .mp3 print("done") except Exception as er: print(er)

JuanBindez commented 1 month ago

You need to open that link that appears and enter the code, after entering the code, return to the terminal and press enter

Morteza820 commented 1 month ago

I dont understand

Morteza820 commented 1 month ago

You need to open that link that appears and enter the code, after entering the code, return to the terminal and press enter

can you help more please?

JuanBindez commented 1 month ago

yes of course

JuanBindez commented 1 month ago

There is a link that appears right?

JuanBindez commented 1 month ago

https://www.google.com/device

Morteza820 commented 1 month ago

There is a link that appears right?

yes

JuanBindez commented 1 month ago

You need to click on this link, it will open in the browser

something like this will appear in the terminal:

input code NGY-GKK-CBWC

You copy this code and paste it on the page you opened in the browser and enter in the browser and in the terminal