0

When you hover your mouse over a video in YouTube, it display a short animated video (see attached screenshot)

enter image description here

I checked the network tab in dev console and the URL is of the format

https://ytimg.com/an_webp/xxx/mqdefault_6s.webp?

However, the page source code doesn't include these links. Is there a way to get the thumbnails for videos on a YouTube page.

  • Please add in your question the javascript code you're using. – Mauricio Arias Olave Aug 03 '19 at 20:09
  • Apparently youtube automatically generates thumbnails for every video. There are several different thumbnail urls and they are basically always the same - only thing that changes is . Check this answer: https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api/2068371#2068371 – Josip Lukacevic Jan 19 '21 at 15:01

1 Answers1

0

when you hover over a video it's GIF is created. You can create your own gif from any video using libraries like gif.js

Aimal Khan
  • 449
  • 2
  • 9