from ytfetcher import YTFetcher
fetcher = YTFetcher.from_video_ids(
video_ids=['OUmh3hCgXnY']
)
comments_data = fetcher.fetch_youtube_data()
print(comments_data)
Execution returned error:
ERROR: [youtube] OUmh3hCgXnY: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies
from ytfetcher import YTFetcher
fetcher = YTFetcher.from_video_ids(
video_ids=['OUmh3hCgXnY']
)
comments_data = fetcher.fetch_youtube_data()
print(comments_data)
Execution returned error:
ERROR: [youtube] OUmh3hCgXnY: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies