votes up 2

Unable to recognize tab page

Package:
Exception Class:
ExtractorError

Raise code

        if video_id:
            return self.url_result(video_id, ie=YoutubeIE.ie_key(), video_id=video_id)
        # Capture and output alerts
        alert = self._extract_alert(data)
        if alert:
            raise ExtractorError(alert, expected=True)
        # Failed to recognize
        raise ExtractorError('Unable to recognize tab page')


class YoutubePlaylistIE(InfoExtractor):
    IE_DESC = 'YouTube.com playlists'
    _VALID_URL = r'''(?x)(?:
                        (?:https?://)?
                        (?:\w+\.)? '''

Comment explaining raise

Failed to recognize

😲 Agile task management is now easier than calling a taxi. #Tracklify
🙏 Scream for help to Ukraine
Today, 14th August 2022, Russia continues bombing and firing Ukraine. Don't trust Russia, they are bombing us and brazenly lying in same time they are not doing this 😠, civilians and children are dying too! We are screaming and asking exactly you to help us, we want to survive, our families, children, older ones.
Please spread the information, and ask your governemnt to stop Russia by any means. We promise to work extrahard after survival to make the world safer place for all.

Ways to fix

votes up 1 votes down

Installing package:

pip install youtube-dl

Error code:

youtube-dl https://www.youtube.com/results?search_query=gta

youtube-dl package allows users to download videos or playlists from youtube. But when they want to download videos from the searched results, they will face errors. Instead of using search URL, they can use ytsearchall::gta.

youtube-dl ytsearchall::gta

In this code, it searches GTA on youtube and downloads all videos.

You can write ytsearch::gta to search and download 1 video.

Jun 10, 2021 anonim answer
anonim 13.0k

Add a possible fix

Please authorize to post fix