Skip to content

Instantly share code, notes, and snippets.

@Sawboo
Sawboo / tcvw.py
Created April 21, 2014 23:07
Twitch.tv Channel Viewers - Text File
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,
@Sawboo
Sawboo / ffmpeg-twitch.md
Last active January 4, 2019 17:23
crazy twitch notes ugh

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:

@Sawboo
Sawboo / virtual.conf
Created August 28, 2013 21:34
nginx virtual config
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.
@Sawboo
Sawboo / typeplate.styl
Created July 19, 2013 14:57
Typeplate 1.0.1 stylus port
/*!
+---------------------------------------------------------------------+
| _ _ _ |
| | |_ _ _ _ __ ___ _ __ | | __ _ | |_ ___ |
| | __|| | | || '_ \ / _ \| '_ \ | | / _` || __|/ _ \ |
| | |_ | |_| || |_) || __/| |_) || || (_| || |_| __/ |
| \__| \__, || .__/ \___|| .__/ |_| \__,_| \__|\___| |
| |___/ |_| |_| |
| |
| |