Pull the last 2 highlights from a users channel:
https://api.twitch.tv/kraken/channels/ennopp112/videos?limit=2
Get a single video:
https://api.twitch.tv/kraken/videos/c3473004
Scrape request to get .flv links:
| import requests | |
| import time | |
| CHANNEL = 'Zfg1' | |
| headers = {'content-type': 'application/vnd.twitchtv.v2+json'} | |
| while 1: | |
| r = requests.get( | |
| 'https://api.twitch.tv/kraken/streams/summary.xml?channel=%s' % CHANNEL, |
Pull the last 2 highlights from a users channel:
https://api.twitch.tv/kraken/channels/ennopp112/videos?limit=2
Get a single video:
https://api.twitch.tv/kraken/videos/c3473004
Scrape request to get .flv links:
| server { | |
| listen 80; | |
| server_name www.groundupnet.com groundupnet.com; | |
| access_log /srv/www/groundupnet.com/logs/access.log; | |
| error_log /srv/www/groundupnet.com/logs/error.log; | |
| charset utf-8; | |
| # Django admin media. |
| /*! | |
| +---------------------------------------------------------------------+ | |
| | _ _ _ | | |
| | | |_ _ _ _ __ ___ _ __ | | __ _ | |_ ___ | | |
| | | __|| | | || '_ \ / _ \| '_ \ | | / _` || __|/ _ \ | | |
| | | |_ | |_| || |_) || __/| |_) || || (_| || |_| __/ | | |
| | \__| \__, || .__/ \___|| .__/ |_| \__,_| \__|\___| | | |
| | |___/ |_| |_| | | |
| | | | |
| | | |