mov-cli-youtube icon indicating copy to clipboard operation
mov-cli-youtube copied to clipboard

yt-dlp scraper not working

Open The96rf opened this issue 6 months ago • 2 comments

[youtube] urYjGtnfckM: 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 Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1662, in wrapper return func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1797, in __extract_info ie_result = ie.extract(url) ^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/extractor/common.py", line 748, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/extractor/youtube/_video.py", line 3824, in _real_extract self.raise_no_formats(reason, expected=True) File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/extractor/common.py", line 1269, in raise_no_formats raise ExtractorError(msg, expected=expected, video_id=video_id) yt_dlp.utils.ExtractorError: [youtube] urYjGtnfckM: 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

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mov_cli/cli/scraper.py", line 33, in scrape media = scraper.scrape(choice, episode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mov_cli_youtube/yt_dlp.py", line 77, in scrape info = ydl.extract_info(watch_url, download = False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1651, in extract_info return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1680, in wrapper self.report_error(str(e), e.format_traceback()) File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1120, in report_error self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs) File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1059, in trouble raise DownloadError(message, exc_info) yt_dlp.utils.DownloadError: ERROR: [youtube] urYjGtnfckM: 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

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/mov-cli", line 8, in sys.exit(app()) ^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mov_cli/cli/main.py", line 162, in app uwu_app() File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/typer/main.py", line 341, in call raise e File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/typer/main.py", line 324, in call return get_command(self)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/click/core.py", line 1442, in call return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/typer/core.py", line 694, in main return _main( ^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/typer/core.py", line 195, in _main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/click/core.py", line 1226, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/click/core.py", line 794, in invoke return callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/typer/main.py", line 699, in wrapper return callback(**use_params) ^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mov_cli/cli/main.py", line 131, in mov_cli content_or_bool = query_and_grab_content( ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mov_cli/cli/main_loop.py", line 105, in query_and_grab_content raise e File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mov_cli/cli/main_loop.py", line 97, in query_and_grab_content media = scrape(choice, chosen_episode, scraper) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mov_cli/cli/scraper.py", line 35, in scrape raise InternalPluginError(e) mov_cli.errors.InternalPluginError: An error occurred inside a plugin. This is MOST LIKELY not a mov-cli error, make SURE mov-cli and your plugins are up to date. Also report this to the plugin, not mov-cli! Error: ERROR: [youtube] urYjGtnfckM: 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

I tried reinstalling but nothing worked Also the termux version is 0.118.3

The96rf avatar Jun 15 '25 10:06 The96rf

Are you using a VPN? If not try to update yt-dlp (pip install yt-dlp -U or whatever pip you used to install the plugin).

If you are using a VPN this is a common Google / YouTube issue now and there's not much we can do to avoid this error other than provide a temporary solution to store cookies or use the cookies from your web browser if that will even work.

This is a duplicate issue: https://github.com/mov-cli/mov-cli-youtube/issues/28#issuecomment-2704188858

THEGOLDENPRO avatar Jun 15 '25 13:06 THEGOLDENPRO

I am not using a vpn

The96rf avatar Jun 15 '25 13:06 The96rf