This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Adapted from http://www.creativetux.com/2012/11/streaming-to-twitchtv-with-linux.html | |
# | |
# Make sure to put your twitch.tv key in a file called "key" in the current directory. | |
# | |
# Before running, make sure PulseAudio is set up with the correct loopback modules | |
# and a null sink named "mix". You can use something ilke the following commands: | |
# | |
# pactl load-module module-null-sink sink_name=mix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import praw | |
try: | |
from credentials import * #NOQA | |
except: | |
USERNAME = 'username' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import praw | |
import requests | |
import sys | |
try: | |
from credentials import * # NOQA | |
except ImportError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from urllib.request import urlopen | |
import xml.etree.ElementTree as etree | |
import re | |
import json | |
def get_snapshot(): | |
NS = '{http://s3.amazonaws.com/doc/2006-03-01/}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import urllib.request | |
import time | |
import re | |
import signal | |
import sys | |
from urllib.parse import urlencode | |
import http.cookiejar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env python3 | |
import json | |
import urllib.request | |
import time | |
import re | |
import signal | |
import sys | |
from urllib.parse import urlencode | |
import http.cookiejar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib.request | |
import time | |
from urllib.parse import urlencode | |
import http.cookiejar | |
def _isVideo(submission): | |
'''Returns video author name if this is a video''' | |
if 'media' in submission: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# moderator-bot.py | |
# | |
# Copyright 2012 Zach McCullough <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin env python3 | |
import json | |
import urllib.request | |
import time | |
import sys | |
import signal | |
from urllib.parse import urlencode | |
import http.cookiejar |
NewerOlder