I have a lot of external links from users, and I need to scrap somehow the video content and generate thumbnail for it to display on my site.
I know this is a simple task with django-oembed, but the list of providers is limited. I need to support sites without oembed too.
So the main task is to determine if p开发者_开发问答age contains the video or no, and generate thumbnail for it.
Can anybody suggest the best way?
You can use Pymedia to extract a frame from the video and PIL to create the thumbnail like suggested here
精彩评论