def streams(url, **params): """Attempts to find a plugin and extract streams from the *url*. *params* are passed to :func:`Plugin.streams`. Raises :exc:`NoPluginError` if no plugin is found. """ session = Streamlink() return session.streams(url, **params)
def streams(url: str, **params): """ Initializes an empty Streamlink session, attempts to find a plugin and extracts streams from the URL if a plugin was found. :param url: a URL to match against loaded plugins :param params: Additional keyword arguments passed to :meth:`streamlink.Streamlink.streams` :raises NoPluginError: on plugin resolve failure :returns: A :class:`dict` of stream names and :class:`streamlink.stream.Stream` instances """ session = Streamlink() return session.streams(url, **params)
from streamlink.session import Streamlink slink = Streamlink() #links = slink.streams("https://www.youtube.com/watch?v=xEzycp1HL8g") #links = slink.streams("http://www.adulttvlive.net/channels/russianntv.php") links = slink.streams("https://www.filmon.com/tv/bbc-one") #links = slink.streams("https://www.filmon.com/channel/sat-1-schweiz") #links = slink.streams("https://embedlive.flexmmp.com/live/livestream.php?ch=tv8&id=2") #links = slink.streams("https://chaturbate.com/lettali/") #links = slink.streams("http://patbuweb.com/iptv/e2liste/Canale-5") #links = slink.streams("https://brittv.co.uk/watch/?channel=1") print "links =", links