what does this mean Traceback (most recent call last): File…
Jump to turn (9)
- 1what does this mean Traceback (most recent call last): File “C:\Users\elias\Pych
- 2no everything is installed correclty
- 3are you sure the code is correct?
- 4audiofilepath shouldt this be rplaced with a path?
- 5so the code wasnt correct
- 6can you write the whole code with every path being r"C:\Users\elias\PycharmProje
- 7shouldt audio filepath be filled
- 8so again can you write the whole code with every place that needs a path be writ
- 9why dont you change audio filepath?
- User
what does this mean Traceback (most recent call last): File “C:\Users\elias\PycharmProjects\pythonProject1\main.py”, line 27, in .input(audio_filepath) ^^^^^ AttributeError: module ‘ffmpeg’ has no attribute ‘input’
Process finished with exit code 1
for this code
import os import requests from pytube import YouTube import ffmpeg
Create object for the YouTube video
yt = YouTube("https://www.youtube.com/watch?v=N_3j3gkY8JM&list=PLNFI79D7MYqPlOvLY1TqRKnZWCGKMIIGw&index=2")
Filter streams to get the audio and video streams, and select the first audio stream
audio_stream = yt.streams.filter(only_audio=True).first()
Download the audio stream
audio_filepath = os.path.join(r"C:\Users\elias\PycharmProjects", yt.title + ".mp3") audio_stream.download(output_path=audio_filepath)
Download the thumbnail