#!/usr/bin/env python from ..common import * from ..extractor import VideoExtractor class Pinterest(VideoExtractor): # site name name = "Pinterest" # ordered list of supported stream types / qualities on this site # order: high quality -> low quality stream_types = [ {'id': 'original'}, # contains an 'id' or 'itag' field at minimum {'id': 'small'}, ] def prepare(self, **kwargs): # scrape the html content = get_content(self.url) # extract title self.title = match1(content, r'