We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, this library you made is very good, I really like it, but I have a problem while using it.
When I try to get a list of videos from a youtube channel, using channel_url , it doesn't return anything. You can see my code below
>>> from scrapetube import get_channel >>> list(get_channel(channel_url = "https://youtube.com/@INSOMNIAFILM?si=idnQuTmk6g5XODzT", limit = 1)) []
When I use channel_url it doesn't return anything, but when I use the id of the youtube channel it returns a list of videos.
>>> list(get_channel(channel_id = 'UCoWUsYrb3xtukm91d3_S3jw', limit = 1) [{'videoId': 'WH692kPmQfQ', 'thumbnail': {'thumbnails': [{'url': 'https://i.ytimg.com/vi/WH692kPmQfQ/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLDj0SgQg8icqmdeYnY8SuhU-Nm9aQ', 'width': 168, 'height': 94}, {'url': 'https://i.ytimg.com/vi/WH692kPmQfQ/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLDZ2tkPU-XkFB3gd56YAA9kjvp1Qw', 'width': 196, 'height': 110}, {'url': 'https://i.ytimg.com/vi/WH692kPmQfQ/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBy3H3kE0Nwo7-zP0E8SyRogwUyDw', 'width': 246, 'height': 138}, {'url': 'https://i.ytimg.com/vi/WH692kPmQfQ/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBUvFhCh4Ty2CzJy-mnRG9EZ2xEvg', 'width': 336, 'height': 188}]}, 'title': {'runs': [{'text': 'HABIS NONTON FILM INI LANGSUNG PRAKTEKIN ILMUNYA...'}], 'accessibility': {'accessibilityData': {'label': 'HABIS NONTON FILM INI LANGSUNG PRAKTEKIN ILMUNYA... by INSOMNIA FILM 343,444 views 4 days ago 27 minutes'}}}, 'descriptionSnippet': {'runs': [{'text': '"Terinspirasi" dari Film LE BRIO\n\nPengisi Suara :\nRichard Chandra\n\nManager :\nJoko Mulyanto\n\nPenulis :\nSurya Yahya Wijaya\n\nEditor :\nAnton Ramdhani\nDedi Hidayat\nAchmad Regi Permana\n\nMakasih udah...'}]}, 'publishedTimeText': {'simpleText': '4 days ago'}, 'lengthText': {'accessibility': {'accessibilityData': {'label': '27 minutes, 7 seconds'}}, 'simpleText': '27:07'}, 'viewCountText': {'simpleText': '343,444 views'}, 'navigationEndpoint': {'clickTrackingParams': 'CO0BENwwIhMI1uPzk5qsgQMVY071BR1sNwJcWhhVQ29XVXNZcmIzeHR1a205MWQzX1MzaneaAQMQ8jg=', 'commandMetadata': {'webCommandMetadata': {'url': '/watch?v=WH692kPmQfQ', 'webPageType': 'WEB_PAGE_TYPE_WATCH', 'rootVe': 3832}}, 'watchEndpoint': {'videoId': 'WH692kPmQfQ', 'watchEndpointSupportedOnesieConfig': {'html5PlaybackOnesieConfig': {'commonConfig': {'url': 'https://rr1---sn-uxa3vhnxa-ngpe.googlevideo.com/initplayback?source=youtube&oeis=1&c=WEB&oad=3200&ovd=3200&oaad=11000&oavd=11000&ocs=700&oewis=1&oputc=1&ofpcc=1&beids=24350018&msp=1&odepv=1&id=587ebdda43e641f4&ip=182.3.140.209&initcwndbps=270000&mt=1694766340&oweuc='}}}}}, 'ownerBadges': [{'metadataBadgeRenderer': {'icon': {'iconType': 'CHECK_CIRCLE_THICK'}, 'style': 'BADGE_STYLE_TYPE_VERIFIED', 'tooltip': 'Verified', 'trackingParams': 'CO0BENwwIhMI1uPzk5qsgQMVY071BR1sNwJc', 'accessibilityData': {'label': 'Verified'}}}], 'trackingParams': 'CO0BENwwIhMI1uPzk5qsgQMVY071BR1sNwJcQPSDmZ-ku6-_WA==', 'showActionMenu': False, 'shortViewCountText': {'accessibility': {'accessibilityData': {'label': '343K views'}}, 'simpleText': '343K views'}, 'menu': {'menuRenderer': {'items': [{'menuServiceItemRenderer': {'text': {'runs': [{'text': 'Add to queue'}]}, 'icon': {'iconType': 'ADD_TO_QUEUE_TAIL'}, 'serviceEndpoint': {'clickTrackingParams': 'CPIBEP6YBBgHIhMI1uPzk5qsgQMVY071BR1sNwJc', 'commandMetadata': {'webCommandMetadata': {'sendPost': True}}, 'signalServiceEndpoint': {'signal': 'CLIENT_SIGNAL', 'actions': [{'clickTrackingParams': 'CPIBEP6YBBgHIhMI1uPzk5qsgQMVY071BR1sNwJc', 'addToPlaylistCommand': {'openMiniplayer': True, 'videoId': 'WH692kPmQfQ', 'listType': 'PLAYLIST_EDIT_LIST_TYPE_QUEUE', 'onCreateListCommand': {'clickTrackingParams': 'CPIBEP6YBBgHIhMI1uPzk5qsgQMVY071BR1sNwJc', 'commandMetadata': {'webCommandMetadata': {'sendPost': True, 'apiUrl': '/youtubei/v1/playlist/create'}}, 'createPlaylistServiceEndpoint': {'videoIds': ['WH692kPmQfQ'], 'params': 'CAQ%3D'}}, 'videoIds': ['WH692kPmQfQ']}}]}}, 'trackingParams': 'CPIBEP6YBBgHIhMI1uPzk5qsgQMVY071BR1sNwJc'}}, {'menuServiceItemDownloadRenderer': {'serviceEndpoint': {'clickTrackingParams': 'CPEBENGqBRgIIhMI1uPzk5qsgQMVY071BR1sNwJc', 'offlineVideoEndpoint': {'videoId': 'WH692kPmQfQ', 'onAddCommand': {'clickTrackingParams': 'CPEBENGqBRgIIhMI1uPzk5qsgQMVY071BR1sNwJc', 'getDownloadActionCommand': {'videoId': 'WH692kPmQfQ', 'params': 'CAI%3D'}}}}, 'trackingParams': 'CPEBENGqBRgIIhMI1uPzk5qsgQMVY071BR1sNwJc'}}, {'menuServiceItemRenderer': {'text': {'runs': [{'text': 'Share'}]}, 'icon': {'iconType': 'SHARE'}, 'serviceEndpoint': {'clickTrackingParams': 'CO0BENwwIhMI1uPzk5qsgQMVY071BR1sNwJc', 'commandMetadata': {'webCommandMetadata': {'sendPost': True, 'apiUrl': '/youtubei/v1/share/get_share_panel'}}, 'shareEntityServiceEndpoint': {'serializedShareEntity': 'CgtXSDY5MmtQbVFmUQ%3D%3D', 'commands': [{'clickTrackingParams': 'CO0BENwwIhMI1uPzk5qsgQMVY071BR1sNwJc', 'openPopupAction': {'popup': {'unifiedSharePanelRenderer': {'trackingParams': 'CPABEI5iIhMI1uPzk5qsgQMVY071BR1sNwJc', 'showLoadingSpinner': True}}, 'popupType': 'DIALOG', 'beReused': True}}]}}, 'trackingParams': 'CO0BENwwIhMI1uPzk5qsgQMVY071BR1sNwJc'}}], 'trackingParams': 'CO0BENwwIhMI1uPzk5qsgQMVY071BR1sNwJc', 'accessibility': {'accessibilityData': {'label': 'Action menu'}}}}, 'thumbnailOverlays': [{'thumbnailOverlayTimeStatusRenderer': {'text': {'accessibility': {'accessibilityData': {'label': '27 minutes, 7 seconds'}}, 'simpleText': '27:07'}, 'style': 'DEFAULT'}}, {'thumbnailOverlayToggleButtonRenderer': {'isToggled': False, 'untoggledIcon': {'iconType': 'WATCH_LATER'}, 'toggledIcon': {'iconType': 'CHECK'}, 'untoggledTooltip': 'Watch later', 'toggledTooltip': 'Added', 'untoggledServiceEndpoint': {'clickTrackingParams': 'CO8BEPnnAxgCIhMI1uPzk5qsgQMVY071BR1sNwJc', 'commandMetadata': {'webCommandMetadata': {'sendPost': True, 'apiUrl': '/youtubei/v1/browse/edit_playlist'}}, 'playlistEditEndpoint': {'playlistId': 'WL', 'actions': [{'addedVideoId': 'WH692kPmQfQ', 'action': 'ACTION_ADD_VIDEO'}]}}, 'toggledServiceEndpoint': {'clickTrackingParams': 'CO8BEPnnAxgCIhMI1uPzk5qsgQMVY071BR1sNwJc', 'commandMetadata': {'webCommandMetadata': {'sendPost': True, 'apiUrl': '/youtubei/v1/browse/edit_playlist'}}, 'playlistEditEndpoint': {'playlistId': 'WL', 'actions': [{'action': 'ACTION_REMOVE_VIDEO_BY_VIDEO_ID', 'removedVideoId': 'WH692kPmQfQ'}]}}, 'untoggledAccessibility': {'accessibilityData': {'label': 'Watch later'}}, 'toggledAccessibility': {'accessibilityData': {'label': 'Added'}}, 'trackingParams': 'CO8BEPnnAxgCIhMI1uPzk5qsgQMVY071BR1sNwJc'}}, {'thumbnailOverlayToggleButtonRenderer': {'untoggledIcon': {'iconType': 'ADD_TO_QUEUE_TAIL'}, 'toggledIcon': {'iconType': 'PLAYLIST_ADD_CHECK'}, 'untoggledTooltip': 'Add to queue', 'toggledTooltip': 'Added', 'untoggledServiceEndpoint': {'clickTrackingParams': 'CO4BEMfsBBgDIhMI1uPzk5qsgQMVY071BR1sNwJc', 'commandMetadata': {'webCommandMetadata': {'sendPost': True}}, 'signalServiceEndpoint': {'signal': 'CLIENT_SIGNAL', 'actions': [{'clickTrackingParams': 'CO4BEMfsBBgDIhMI1uPzk5qsgQMVY071BR1sNwJc', 'addToPlaylistCommand': {'openMiniplayer': True, 'videoId': 'WH692kPmQfQ', 'listType': 'PLAYLIST_EDIT_LIST_TYPE_QUEUE', 'onCreateListCommand': {'clickTrackingParams': 'CO4BEMfsBBgDIhMI1uPzk5qsgQMVY071BR1sNwJc', 'commandMetadata': {'webCommandMetadata': {'sendPost': True, 'apiUrl': '/youtubei/v1/playlist/create'}}, 'createPlaylistServiceEndpoint': {'videoIds': ['WH692kPmQfQ'], 'params': 'CAQ%3D'}}, 'videoIds': ['WH692kPmQfQ']}}]}}, 'untoggledAccessibility': {'accessibilityData': {'label': 'Add to queue'}}, 'toggledAccessibility': {'accessibilityData': {'label': 'Added'}}, 'trackingParams': 'CO4BEMfsBBgDIhMI1uPzk5qsgQMVY071BR1sNwJc'}}, {'thumbnailOverlayNowPlayingRenderer': {'text': {'runs': [{'text': 'Now playing'}]}}}], 'richThumbnail': {'movingThumbnailRenderer': {'movingThumbnailDetails': {'thumbnails': [{'url': 'https://i.ytimg.com/an_webp/WH692kPmQfQ/mqdefault_6s.webp?du=3000&sqp=CIDuj6gG&rs=AOn4CLD3RhdFDTEnfUy23ZcDvsbpDMBPSQ', 'width': 320, 'height': 180}], 'logAsMovingThumbnail': True}, 'enableHoveredLogging': True, 'enableOverlay': True}}}]
Can you help me?:)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, this library you made is very good, I really like it, but I have a problem while using it.
When I try to get a list of videos from a youtube channel, using channel_url , it doesn't return anything. You can see my code below
When I use channel_url it doesn't return anything, but when I use the id of the youtube channel it returns a list of videos.
Can you help me?:)
The text was updated successfully, but these errors were encountered: