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 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') |
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
# 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' |
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
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 |
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 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. |
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 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 |