HOW TO get thumbails from Amazon, YouTube

There is a pattern in which URLs to generate image thumbnails are created by Amazon, YouTube. The trick to get the images is to manipulate these URLs. 


Replace the Amazon Standard Identification Number (ASIN) in the URL to get a 93 x 140 pixels, standard size image - http://images.amazon.com/images/P/{ASIN}.01.MZZZZZZZ.jpg 

As per this discussion thread, you can adapt the format of the YouTube URLs by replacing the actual VideoId in this URL to get thumbnail images of dimensions 130x97 - 
http://img.youtube.com/vi/{VideoId}/1.jpg 

and use this for a 320x240 image - http://img.youtube.com/vi/{VideoId}/0.jpg 

You may have to check for the licensing terms before you use them.

Comments

Popular posts from this blog

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)