Skip to content

Instantly share code, notes, and snippets.

@remitamine
remitamine / m3u8_downloader.py
Last active Mar 29, 2019
youtube-dl m3u8 wrapper
View m3u8_downloader.py
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
remitamine / picasa.py
Last active Aug 29, 2015
youtube-dl extractor for Picasa
View picasa.py
from .common import InfoExtractor
class PicasaIE(InfoExtractor):
_VALID_URL = r'(?:https?://)?picasaweb\.google.com/lh/photo/(?P<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
remitamine / googledrive.py
Last active May 5, 2017
youtube-dl extractor for Google Drive
View googledrive.py
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'},