@מישהו12 עדיין רלוונטי?
עברתי עכשיו ביחד עם chatGPT על כל הסקריפטים שנתקעתי בהם בעבר ובסוף יצא לי משהו שעובד טוב
זה מצריך התקנה של הספריות pytube ו pandas
זה הקוד
from pytube import Playlist
import pandas as pd
# Prompt the user for the playlist address
playlist_address = input("Enter the address of the YouTube playlist: ")
# Create a Playlist object
playlist = Playlist(playlist_address)
# Create a DataFrame to store the video information
data = {"video_title": [], "video_link": []}
df = pd.DataFrame(data)
# Loop through each video in the playlist
for video in playlist.videos:
# Store the video title and link in the DataFrame
df = df.append({"video_title": video.title, "video_link": video.watch_url}, ignore_index=True)
# Save the DataFrame as a CSV file
df.to_csv("playlist.csv", index=False)
אם כי, נראה שאחרי כמה ניסיונות יוטיוב חסמו אותי