Really good idea and well executed.
Would you mind saying a few words behind the code?
Do you scrape the whole video, or just the part requested? And is the conversion to gif a library or something you wrote?
I'm totally ignorant when it comes to scraping videos and converting them, but I find it interesting.