Этот вопрос закрыт для ответов, так как повторяет вопрос Как достать ссылку на видео?
@salembar

Как это получить?

Как получить это https://music.youtube.com/watch?v=XnEcHPR40Rw ?
Из этого
{"entityUniqueId":"YOUTUBE_VIDEO::XnEcHPR40Rw","userCountry":"EN","pageUrl":"https://song.link/y/XnEcHPR40Rw","entitiesByUniqueId":{"AMAZON_SONG::B09LNV678Y":{"id":"B09LNV678Y","type":"song","title":"BORN FROM SHYNE","artistName":"Lil Morty","thumbnailUrl":"https://m.media-amazon.com/images/I/41kF+jGAC9L.jpg","thumbnailWidth":500,"thumbnailHeight":500,"apiProvider":"amazon","platforms":["amazonMusic","amazonStore"]},"ANGHAMI_SONG::1034138172":{"id":"1034138172","type":"song","title":"BORN FROM SHYNE","artistName":"Lil Morty","thumbnailUrl":"https://anghamicoverart.akamaized.net/cover/149581685/320","thumbnailWidth":1024,"thumbnailHeight":1024,"apiProvider":"anghami","platforms":["anghami"]},"BOOMPLAY_SONG::75295321":{"id":"75295321","type":"song","title":"BORN FROM SHYNE","artistName":"Lil Morty","thumbnailUrl":"https://source.boomplaymusic.com/group10/M00/11/11/9620ba794bb74a81bec15dd0a4ff2492_464_464.jpg","thumbnailWidth":464,"thumbnailHeight":464,"apiProvider":"boomplay","platforms":["boomplay"]},"DEEZER_SONG::1550550422":{"id":"1550550422","type":"song","title":"BORN FROM SHYNE","artistName":"Lil Morty","thumbnailUrl":"https://cdns-images.dzcdn.net/images/cover/18eef6e4a1951becd316407d2875e371/500x500-000000-80-0-0.jpg","thumbnailWidth":500,"thumbnailHeight":500,"apiProvider":"deezer","platforms":["deezer"]},"ITUNES_SONG::1594231256":{"id":"1594231256","type":"song","title":"BORN FROM SHYNE","artistName":"Lil Morty","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Music116/v4/69/84/0f/69840fa7-c692-78f1-88c8-4d035ad86f70/886449732036.jpg/512x512bb.jpg","thumbnailWidth":512,"thumbnailHeight":512,"apiProvider":"itunes","platforms":["appleMusic","itunes"]},"NAPSTER_SONG::tra.625213447":{"id":"tra.625213447","type":"song","title":"BORN FROM SHYNE","artistName":"Lil Morty","thumbnailUrl":"https://direct.rhapsody.com/imageserver/images/alb.625213445/385x385.jpeg","thumbnailWidth":385,"thumbnailHeight":385,"apiProvider":"napster","platforms":["napster"]},"PANDORA_SONG::TR:51513278":{"id":"TR:51513278","type":"song","title":"BORN FROM SHYNE","artistName":"Lil Morty","thumbnailUrl":"https://content-images.p-cdn.com/images/af/bc/dd/2f/9e2a4c1e8a50daa80d09fd37/_500W_500H.jpg","thumbnailWidth":500,"thumbnailHeight":500,"apiProvider":"pandora","platforms":["pandora"]},"SPOTIFY_SONG::7rlp14SMKYrQ7j0WjKLPgH":{"id":"7rlp14SMKYrQ7j0WjKLPgH","type":"song","title":"BORN FROM SHYNE","artistName":"LIL MORTY","thumbnailUrl":"https://i.scdn.co/image/ab67616d0000b273acc08defe9e1991d0f8e463d","thumbnailWidth":640,"thumbnailHeight":640,"apiProvider":"spotify","platforms":["spotify"]},"TIDAL_SONG::204840183":{"id":"204840183","type":"song","title":"BORN FROM SHYNE","artistName":"Lil Morty","thumbnailUrl":"https://resources.tidal.com/images/feebf021/f46a/4a41/b255/f78fdfcf358b/640x640.jpg","thumbnailWidth":640,"thumbnailHeight":640,"apiProvider":"tidal","platforms":["tidal"]},"YANDEX_SONG::94899502":{"id":"94899502","type":"song","title":"BORN FROM SHYNE","artistName":"LIL MORTY","thumbnailUrl":"https://avatars.yandex.net/get-music-content/4785246/a6478946.a.19295182-1/600x600","thumbnailWidth":600,"thumbnailHeight":600,"apiProvider":"yandex","platforms":["yandex"]},"YOUTUBE_VIDEO::XnEcHPR40Rw":{"id":"XnEcHPR40Rw","type":"song","title":"BORN FROM SHYNE","artistName":"LIL MORTY - Topic","thumbnailUrl":"https://i.ytimg.com/vi/XnEcHPR40Rw/hqdefault.jpg","thumbnailWidth":480,"thumbnailHeight":360,"apiProvider":"youtube","platforms":["youtube","youtubeMusic"]}},"linksByPlatform":{"amazonMusic":{"country":"US","url":"https://music.amazon.com/albums/B09LP5TLJT?trackAsin=B09LNV678Y","entityUniqueId":"AMAZON_SONG::B09LNV678Y"},"amazonStore":{"country":"US","url":"https://amazon.com/dp/B09LNV678Y","entityUniqueId":"AMAZON_SONG::B09LNV678Y"},"anghami":{"country":"EN","url":"https://play.anghami.com/song/1034138172?refer=linktree","entityUniqueId":"ANGHAMI_SONG::1034138172"},"boomplay":{"country":"EN","url":"https://www.boomplay.com/songs/75295321","entityUniqueId":"BOOMPLAY_SONG::75295321"},"deezer":{"country":"EN","url":"https://www.deezer.com/track/1550550422","entityUniqueId":"DEEZER_SONG::1550550422"},"appleMusic":{"url":"https://geo.music.apple.com/en/album/_/1594231255?i=1594231256&mt=1&app=music&ls=1&at=1000lHKX&ct=api_http&itscg=30200&itsct=odsl_m","nativeAppUriMobile":"music://itunes.apple.com/en/album/_/1594231255?i=1594231256&mt=1&app=music&ls=1&at=1000lHKX&ct=api_uri_m&itscg=30200&itsct=odsl_m","nativeAppUriDesktop":"itmss://itunes.apple.com/en/album/_/1594231255?i=1594231256&mt=1&app=music&ls=1&at=1000lHKX&ct=api_uri_d&itscg=30200&itsct=odsl_m","entityUniqueId":"ITUNES_SONG::1594231256"},"itunes":{"url":"https://geo.music.apple.com/en/album/_/1594231255?i=1594231256&mt=1&app=itunes&ls=1&at=1000lHKX&ct=api_http&itscg=30200&itsct=odsl_m","nativeAppUriMobile":"itmss://itunes.apple.com/en/album/_/1594231255?i=1594231256&mt=1&app=itunes&ls=1&at=1000lHKX&ct=api_uri_m&itscg=30200&itsct=odsl_m","nativeAppUriDesktop":"itmss://itunes.apple.com/en/album/_/1594231255?i=1594231256&mt=1&app=itunes&ls=1&at=1000lHKX&ct=api_uri_d&itscg=30200&itsct=odsl_m","entityUniqueId":"ITUNES_SONG::1594231256"},"napster":{"country":"EN","url":"https://napster.com/track/tra.625213447","entityUniqueId":"NAPSTER_SONG::tra.625213447"},"pandora":{"country":"US","url":"https://www.pandora.com/TR:51513278","entityUniqueId":"PANDORA_SONG::TR:51513278"},"spotify":{"country":"US","url":"https://open.spotify.com/track/7rlp14SMKYrQ7j0WjKLPgH","nativeAppUriDesktop":"spotify:track:7rlp14SMKYrQ7j0WjKLPgH","entityUniqueId":"SPOTIFY_SONG::7rlp14SMKYrQ7j0WjKLPgH"},"tidal":{"country":"US","url":"https://listen.tidal.com/track/204840183","entityUniqueId":"TIDAL_SONG::204840183"},"yandex":{"country":"RU","url":"https://music.yandex.ru/track/94899502","entityUniqueId":"YANDEX_SONG::94899502"},"youtube":{"country":"EN","url":"https://www.youtube.com/watch?v=XnEcHPR40Rw","entityUniqueId":"YOUTUBE_VIDEO::XnEcHPR40Rw"},"youtubeMusic":{"country":"EN","url":"https://music.youtube.com/watch?v=XnEcHPR40Rw","entityUniqueId":"YOUTUBE_VIDEO::XnEcHPR40Rw"}}}


628f28c268a24138980539.jpeg

Или вот скриншот, потому что код в строчку.
  • Вопрос задан
  • 104 просмотра
Ответы на вопрос 1
Vindicar
@Vindicar
RTFM!
Распарсить текст JSON в структуру данных (см. модуль json), дальше пройтись по ключам списков и словарей (см. основные структуры данных Python).
Ответ написан
Ваш ответ на вопрос

Вопрос закрыт для ответов и комментариев

Потому что уже есть похожий вопрос.
Похожие вопросы