python - How to get live stream url from script -


i need live stream url using scripting language such python or shell

eg: http://rt.com/on-air/

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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -