This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://miot-spec.org/miot-spec-v2/instances?status=all | |
http://miot-spec.org/miot-spec-v2/instances?status=debug | |
http://miot-spec.org/miot-spec-v2/instances?status=released | |
and for example air purifier 3 cn (zhimi.airpurifier.ma4) | |
https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ma4:1 | |
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:light:0000A001:philips-bulb:1 | |
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:fan:0000A005:zhimi-sa1:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import urllib.request, re, argparse, math, sys | |
import xml.etree.ElementTree as ET | |
from operator import itemgetter | |
parser = argparse.ArgumentParser(description='Extrahiert die URLs der Dateien eines Videos aus der MDR Mediathek') | |
parser.add_argument('urls', help='Eine Liste von URLs zu den Videos in der MDR Mediathek', nargs='+') | |
parser.add_argument('-d', '--download', action='store_true', help='größtes Video herunterladen') |