-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
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
How to get YouTube moving thumbnail #61
Comments
The animated thumbnails are only added to the DOM when the mouse is hovered over the thumbnail, but the urls are included in a javascript variable in a script tag in the body of the page. Easiest approach to extract the matching animated thumbnail urls from the page would be with a regex something like this: "(http.+/an_webp/the_video_id/.+)" |
Nice, I'll look into it at some point, feel free to pull request if you figure it out |
Ah, I see you're already using the "richThumbnail": {
"movingThumbnailRenderer": {
"enableHoveredLogging": true,
"enableOverlay": true,
"movingThumbnailDetails": {
"logAsMovingThumbnail": true,
"thumbnails": [
{
"height": 180,
"url": "https://i.ytimg.com/an_webp/mX_fQyxKiPQ/mqdefault_6s.webp?du=3000&sqp=CKylo4MG&rs=AOn4CLAJhoHhnxxaA_M2UDkLjamaqy4ViQ",
"width": 320
}
]
}
}
} |
Sou do Brasil - pt-BR Salve o codigo abaixo em uma pagina PHP
|
A demonstração esta aqui https://gean.me/img-gif |
How to get YouTube moving thumbnail
https://i.ytimg.com/an_webp/wTzTyVpgytk/mqdefault_6s.webp?du=3000&sqp=CNjqooEG&rs=AOn4CLAx64ao7CbvmV6IzxKOK4pjNnyeVA
The text was updated successfully, but these errors were encountered: