Skip to content

Instantly share code, notes, and snippets.

View MarkEEaton's full-sized avatar

Mark Eaton MarkEEaton

View GitHub Profile
@MarkEEaton
MarkEEaton / respondingbot.py
Last active March 31, 2016 01:12
Bot Day: Script 4
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Original script (kept up to date): https://github.com/robincamille/bot-tutorial/blob/master/respondingbot.py
# Twitter Bot Starter Kit: Responding Bot
# This bot listens to the account @ocertat, and when that account
# tweets, it responds with a line of Twain
@MarkEEaton
MarkEEaton / mashup_madlib.py
Last active March 31, 2016 01:16
Bot Day: Script 3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Original script (kept up to date): https://github.com/robincamille/bot-tutorial/blob/master/mashup_madlib.py
# Mad Lib Maker!
# This script will generate mad-libs based off of a William Carlos
# Williams poem, 'The Red Wheelbarrow.' Each poem will then be
# tweeted by your bot account.
@MarkEEaton
MarkEEaton / mybot2.py
Last active March 31, 2016 01:21
Bot Day: Script 2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Original script (kept up to date): https://github.com/robincamille/bot-tutorial/blob/master/mybot2.py
# Twitter Bot Starter Kit: Bot 2
# This bot tweets a text file line by line, waiting a
# given period of time between tweets.
@MarkEEaton
MarkEEaton / mybot.py
Last active March 31, 2016 01:22
Bot Day: Script 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Original script (kept up to date): https://github.com/robincamille/bot-tutorial/blob/master/mybot.py
# Twitter Bot Starter Kit: Bot 1
# This bot tweets three times, waiting 15 seconds between tweets.
# If you haven't changed credentials.py yet with your own Twitter
@MarkEEaton
MarkEEaton / markovmaker.py
Last active November 9, 2016 01:57
Bot Day: Script 5
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Original script (kept up to date): https://github.com/robincamille/bot-tutorial/blob/master/mashup_markov/markovmaker.py
# Markov-chain text maker
# This script takes a .txt file and makes a mashup of it
# using a Markov chain: linking word phrases together
# from different spots in the text.
@MarkEEaton
MarkEEaton / sushi_dump.log
Created August 15, 2018 15:59
SUSHI debug log
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): usagereports.galegroup.com:80
DEBUG:urllib3.connectionpool:http://usagereports.galegroup.com:80 "POST /sushi/ws HTTP/1.1" 200 1702
DEBUG:pycounter.sushi:SUSHI DUMP: request: b'<?xml version=\'1.0\' encoding=\'utf-8\'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:counter="http://www.niso.org/schemas/counter" xmlns:sushi="http://www.niso.org/schemas/sushi" xmlns:sushicounter="http://www.niso.org/schemas/sushi/counter">
<SOAP-ENV:Body>
<sushicounter:ReportRequest Created="2018-08-15T15:38:46.213576+00:00" ID="redacted">
<sushi:Requestor>
<sushi:ID>redacted</sushi:ID>
<sushi:Name/>
<sushi:Email/>