Skip to content

Instantly share code, notes, and snippets.

@remitamine
remitamine / googledrive.py
Last active January 27, 2023 13:36
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'},
@remitamine
remitamine / picasa.py
Last active August 29, 2015 14:23
youtube-dl extractor for Picasa
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 / m3u8_downloader.py
Last active March 29, 2019 14:00
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