Skip to content

Instantly share code, notes, and snippets.

remitamine /
Last active Mar 29, 2019
youtube-dl m3u8 wrapper
from sys import argv
import os
import re
import subprocess
import urllib.request
import urllib.parse
import youtube_dl
from gi.repository import Notify
remitamine /
Last active Aug 29, 2015
youtube-dl extractor for Picasa
from .common import InfoExtractor
class PicasaIE(InfoExtractor):
_VALID_URL = r'(?:https?://)?picasaweb\<id>.+?)$'
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
title = self._html_search_regex(
remitamine /
Last active May 5, 2017
youtube-dl extractor for Google Drive
from .common import InfoExtractor
from ..utils import RegexNotFoundError
class GoogleDriveIE(InfoExtractor):
_VALID_URL = r'(?:https?://)?(?:video\.google\.com/get_player\?.*?docid=|(?:docs|drive)\.google\.com/(?:uc\?.*?id=|file/d/))(?P<id>.+?)(?:&|/|$)'
_formats = {
'5': {'ext': 'flv'},
'6': {'ext': 'flv'},
'13': {'ext': '3gp'},
'17': {'ext': '3gp'},