python - How to get live stream url from script -
i need live stream url using scripting language such python or shell
i can url using tool such network monitor on firefox, need able via script
after quick on requests documentation:
from contextlib import closing closing(requests.get('http://rt.com/on-air/', stream=true)) r: # things response here.
if doesn't help, please check another way:
import requests r = requests.get('http://rt.com/on-air/', stream=true) line in r.iter_lines(): # filter out keep-alive new lines if line: # sort of things
Comments
Post a Comment