You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The script encounters an error message "VXHa83Lcmdk This request was detected as a bot. Use use_po_token=True to view. See more details at #209" when attempting to download a YouTube video.
code that was used that resulted in the bug
frompytubefiximportYouTubeimportuuid, os, tempfileyoutubeObject=YouTube(link)#,use_po_token=True) ## Asking for token input on terminalyoutubeObject=youtubeObject.streams.get_highest_resolution()
uniqueFilename=str(uuid.uuid4()) +".mp4"withtempfile.TemporaryDirectory() astempDir:
tempFilePath=os.path.join(tempDir, uniqueFilename)
youtubeObject.download(output_path=tempDir, filename=uniqueFilename)
print("Youtube download is completed successfully")
Expected behavior
The script should download a video from the provided YouTube video URL and save it with a unique filename in the temporary directory.
Version Details :
The script is deployed as an endpoint using FastAPI and hosted on Google Cloud Platform (GCP) App Engine.
Python version: 3.9
pytubefix version: 8.1.1
The text was updated successfully, but these errors were encountered:
Describe the bug
The script encounters an error message "VXHa83Lcmdk This request was detected as a bot. Use use_po_token=True to view. See more details at #209" when attempting to download a YouTube video.
code that was used that resulted in the bug
Expected behavior
The script should download a video from the provided YouTube video URL and save it with a unique filename in the temporary directory.
Version Details :
The text was updated successfully, but these errors were encountered: