Skip to content

Instantly share code, notes, and snippets.

View robincamille's full-sized avatar

Robin Camille Davis robincamille

View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# From a saved Wikipedia page, plucks out the link titles from links #100-200
from bs4 import BeautifulSoup
with open('Royal_British_Columbia_Museum.html') as doc:
text = BeautifulSoup(doc,"html.parser")
links = text.find_all('a')
# Credentials for your Twitter bot account
# Original script (kept up to date): https://github.com/robincamille/bot-tutorial/blob/master/credentials.py
# 1. Sign into Twitter or create new account
# 2. Make sure your mobile number is listed at twitter.com/settings/devices
# 3. Head to apps.twitter.com and select Keys and Access Tokens
CONSUMER_KEY = 'XXXXXXX'
Theory of persuasion played this few wayward particles of light escape asks.
Procure a toolset of versa. Jerks, only in it for a few years lower who for
our warm mechanical leaves. Around the bananas terms our I am digging for the
dollar preſent, bits of cartilage are a glare. Blob of transformer veins not
mommy made tiny to love along!. Remember 8-Track tapes was dog. Pinball and
video arcades, refills, plastered not blob of transformer fort. Wit pities
spite proceedings to for all participants nose. Jerks, only in it for a few
years stinging which was sullied for its whitewash of non-existent friends,
tender but willing this butcher.Theory of persuasion played this few wayward particles of light escape asks.
Procure a toolset of versa. Jerks, only in it for a few years lower who for
@robincamille
robincamille / mashup_madlib.py
Last active March 30, 2016 20:16
Mad lib Twitter bot
#!/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.
@robincamille
robincamille / mybot.py
Last active March 30, 2016 20:17
Basic bot
#!/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