Bots: Difference between revisions
From charlesreid1
No edit summary |
m (Replacing charlesreid1.com:3000 with git.charlesreid1.com) |
||
| (20 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
I have lots of Twitter bots. Each of the bots is described below. | I have lots of Twitter bots. Each of the bots is described below. | ||
==Watergate Bot== | ==Watergate Bot== | ||
| Line 14: | Line 12: | ||
==Apollo Space Junk Bots== | ==Apollo Space Junk Bots== | ||
https://twitter.com/charlesreid1/lists/space-junk-botflock/members | |||
{{TwitterBot | {{TwitterBot | ||
| Line 19: | Line 19: | ||
|handle=[http://twitter.com/apollo11junk @apollo11junk] | |handle=[http://twitter.com/apollo11junk @apollo11junk] | ||
|description=Apollo 11 Space Junk is a twitter bot that generates fake Apollo-Mission Control radio dialogue. It uses the flight logs (transcripts of radio dialogue) to train a language generator, then uses a Queneau sentence generator to generate new fake Apollo 11 radio dialogue. | |description=Apollo 11 Space Junk is a twitter bot that generates fake Apollo-Mission Control radio dialogue. It uses the flight logs (transcripts of radio dialogue) to train a language generator, then uses a Queneau sentence generator to generate new fake Apollo 11 radio dialogue. | ||
See [[Apollo11Junk]] | |||
}} | }} | ||
| Line 25: | Line 27: | ||
|handle=[http://twitter.com/apollo12junk @apollo12junk] | |handle=[http://twitter.com/apollo12junk @apollo12junk] | ||
|description=Apollo 12 Space Junk is a sister bot to Apollo 11 Space Junk. It also uses the Apollo-Mission Control radio dialogues to generate new fake radio dialogue, but uses transcripts from the Apollo 12 mission. | |description=Apollo 12 Space Junk is a sister bot to Apollo 11 Space Junk. It also uses the Apollo-Mission Control radio dialogues to generate new fake radio dialogue, but uses transcripts from the Apollo 12 mission. | ||
}} | |||
{{TwitterBot | |||
|name=Apollo 13 Space Junk | |||
|handle=[http://twitter.com/apollo13junk @apollo13junk] | |||
|description=Apollo 13 Space Junk uses the Apollo-Mission Control radio dialogues to generate new fake radio dialogue from the transcripts of the Apollo 13 mission. | |||
}} | }} | ||
| Line 30: | Line 38: | ||
Milton Paradise Lost Bot Flock: @milton_book1, @milton_book2, @milton_book3, @milton_book4, @milton_book5, @milton_book6, @milton_book7, @milton_book8, @milton_book9, @milton_book10, @milton_book11, @milton_book12 | Milton Paradise Lost Bot Flock: @milton_book1, @milton_book2, @milton_book3, @milton_book4, @milton_book5, @milton_book6, @milton_book7, @milton_book8, @milton_book9, @milton_book10, @milton_book11, @milton_book12 | ||
https://twitter.com/charlesreid1/lists/miltonbotflock/members | |||
{{TwitterBot | |||
|name=Paradise Lost Book 1 | |||
|handle=[http://twitter.com/milton_book1 milton_book1] | |||
|description=Tweeting John Milton's Paradise Lost Book 1 | |||
[[Image:Milton_book1.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 2 | |||
|handle=[http://twitter.com/milton_book2 milton_book2] | |||
|description=Tweeting John Milton's Paradise Lost Book 2 | |||
[[Image:Milton_book2.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 3 | |||
|handle=[http://twitter.com/milton_book3 milton_book3] | |||
|description=Tweeting John Milton's Paradise Lost Book 3 | |||
[[Image:Milton_book3.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 4 | |||
|handle=[http://twitter.com/milton_book4 milton_book4] | |||
|description=Tweeting John Milton's Paradise Lost Book 4 | |||
[[Image:Milton_book4.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 5 | |||
|handle=[http://twitter.com/milton_book5 milton_book5] | |||
|description=Tweeting John Milton's Paradise Lost Book 5 | |||
[[Image:Milton_book5.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 6 | |||
|handle=[http://twitter.com/milton_book6 milton_book6] | |||
|description=Tweeting John Milton's Paradise Lost Book 6 | |||
[[Image:Milton_book6.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 7 | |||
|handle=[http://twitter.com/milton_book7 milton_book7] | |||
|description=Tweeting John Milton's Paradise Lost Book 7 | |||
[[Image:Milton_book7.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 8 | |||
|handle=[http://twitter.com/milton_book8 milton_book8] | |||
|description=Tweeting John Milton's Paradise Lost Book 8 | |||
[[Image:Milton_book8.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 9 | |||
|handle=[http://twitter.com/milton_book9 milton_book9] | |||
|description=Tweeting John Milton's Paradise Lost Book 9 | |||
[[Image:Milton_book9.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 10 | |||
|handle=[http://twitter.com/milton_book10 milton_book10] | |||
|description=Tweeting John Milton's Paradise Lost Book 10 | |||
[[Image:Milton_book10.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 11 | |||
|handle=[http://twitter.com/milton_book11 milton_book11] | |||
|description=Tweeting John Milton's Paradise Lost Book 11 | |||
[[Image:Milton_book11.jpg|400px]] | |||
}} | |||
{{TwitterBot | |||
|name=Paradise Lost Book 12 | |||
|handle=[http://twitter.com/milton_book12 milton_book12] | |||
|description=Tweeting John Milton's Paradise Lost Book 12 | |||
[[Image:Milton_book12.jpg|400px]] | |||
}} | |||
==Ginsberg Bot Flock== | ==Ginsberg Bot Flock== | ||
https://twitter.com/charlesreid1/lists/ginsbergbotflock/members | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_america gbf_america] | |||
|name=America | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_auntrose gbf_auntrose] | |||
|name=Aunt Rose | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_chicago gbf_chicago] | |||
|name=An Open Window on Chicago | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_cosmo gbf_cosmo] | |||
|name=Cosmopolitan Greetings | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_dc gbf_dc] | |||
|name=D.C. Mobilization | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_deathfame gbf_deathfame] | |||
|name=Death and Fame | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_deathfronts gbf_deathfronts] | |||
|name=Death On All Fronts | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_ecologue gbf_ecologue] | |||
|name=Ecologue | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_elegy gbf_elegy] | |||
|name=Elegy Che Guevara | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_fiveam gbf_fiveam] | |||
|name=Five A.M. | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_greyhound gbf_greyhound] | |||
|name=In the depths of the Greyhound Terminal | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_hospital gbf_hospital] | |||
|name=Hospital Window | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_howl gbf_howl] | |||
|name=Howl | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_kaddish gbf_kaddish] | |||
|name=Kaddish | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_lion gbf_lion] | |||
|name=The Lion For Real | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_money gbf_money] | |||
|name=The Velocity of Money | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_organ gbf_organ] | |||
|name=Transcription of Organ Music | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_sunflower gbf_sunflower] | |||
|name=Sunflower Sutra | |||
|description= | |||
}} | |||
{{TwitterBot | |||
|handle=[http://twitter.com/gbf_supermarket gbf_supermarket] | |||
|name=A Supermarket in California | |||
|description= | |||
}} | |||
==GBF List== | |||
<pre> | |||
gbf_america | |||
gbf_auntrose | |||
gbf_chicago | |||
gbf_cosmo | |||
gbf_dc | |||
gbf_deathfame | |||
gbf_deathfronts | |||
gbf_ecologue | |||
gbf_elegy | |||
gbf_fiveam | |||
gbf_greyhound | |||
gbf_hospital | |||
gbf_howl | |||
gbf_kaddish | |||
gbf_lion | |||
gbf_money | |||
gbf_organ | |||
gbf_sunflower | |||
gbf_supermarket | |||
</pre> | |||
==Bot Software== | |||
[[Bots/Software]] | |||
=MediaWiki Bots= | =MediaWiki Bots= | ||
| Line 37: | Line 287: | ||
==charlesreid1.com Wiki Bot== | ==charlesreid1.com Wiki Bot== | ||
Code for charlesreid1.com wiki bot: https://git.charlesreid1.com/wiki/pywikibot | |||
See [[Pywikibot]] for details. | |||
==Wikipedia Bots== | ==Wikipedia Bots== | ||
| Line 45: | Line 295: | ||
This is an interesting rabbit hole of things to learn more about and write more about. A funny metaphor for understanding the roles of bureaucracy and machines in bureaucracy. | This is an interesting rabbit hole of things to learn more about and write more about. A funny metaphor for understanding the roles of bureaucracy and machines in bureaucracy. | ||
=Bot | =Bot Control Panel= | ||
In order to start bots at startup, I created a startup script that will spin off instances of each bot into a separate screen. This script is then added to the list of startup scripts, so that if the machine dies, the bots will start again when the machine is restarted. | |||
Here's how that works: | |||
* I called screen from the command line (actually from a script) in a way that starts a detached, headless screen in the background. | |||
* Each screen runs a bot flock (a group of related bots), and runs them forever until something goes terribly wrong. | |||
* I added this script to <code>/etc/rc.local</code> to make it run on boot. | |||
Here's the script: | |||
<pre> | |||
#!/bin/sh | |||
# -d -m | |||
# Start screen in "detached" mode. | |||
# Create new session but do not attach to it. | |||
# Useful for scripts. | |||
# -S | |||
# This option can give a name to the new screen. | |||
# Apollo bot flock | |||
/usr/bin/screen -d -m -S apollo /usr/bin/python /apollospacejunk/bot/ApolloBotFlock.py | |||
# Ginsberg bot flock | |||
/usr/bin/screen -d -m -S ginsberg /usr/bin/python /ginsberg/bot/GinsbergBotFlock.py | |||
# Milton bot flock | |||
/usr/bin/screen -d -m -S milton /usr/bin/python /milton/bot/MiltonBotFlock.py | |||
</pre> | |||
=Bot Ideas= | |||
See [[Bots/Ideas]] | |||
=Flags= | |||
{{BotFlag}} | |||
Latest revision as of 03:18, 9 October 2019
Twitter Bots
I have lots of Twitter bots. Each of the bots is described below.
Watergate Bot
| Bot Name: | This Is Watergate |
| Handle: | @thisiswatergate |
| Description: | This Is Watergate is a twitter bot that generates fake White House tapes dialogue. It works by learning how White House tapes sound, using a large corpus of White House tapes transcripts. It then uses a Queneau sentence generator from the Olipy library on GitHub to generate new fake White House tapes dialogue. |
Apollo Space Junk Bots
https://twitter.com/charlesreid1/lists/space-junk-botflock/members
| Bot Name: | Apollo 11 Space Junk |
| Handle: | @apollo11junk |
| Description: | Apollo 11 Space Junk is a twitter bot that generates fake Apollo-Mission Control radio dialogue. It uses the flight logs (transcripts of radio dialogue) to train a language generator, then uses a Queneau sentence generator to generate new fake Apollo 11 radio dialogue.
See Apollo11Junk |
| Bot Name: | Apollo 12 Space Junk |
| Handle: | @apollo12junk |
| Description: | Apollo 12 Space Junk is a sister bot to Apollo 11 Space Junk. It also uses the Apollo-Mission Control radio dialogues to generate new fake radio dialogue, but uses transcripts from the Apollo 12 mission. |
| Bot Name: | Apollo 13 Space Junk |
| Handle: | @apollo13junk |
| Description: | Apollo 13 Space Junk uses the Apollo-Mission Control radio dialogues to generate new fake radio dialogue from the transcripts of the Apollo 13 mission. |
Paradise Lost Bot Flock
Milton Paradise Lost Bot Flock: @milton_book1, @milton_book2, @milton_book3, @milton_book4, @milton_book5, @milton_book6, @milton_book7, @milton_book8, @milton_book9, @milton_book10, @milton_book11, @milton_book12
https://twitter.com/charlesreid1/lists/miltonbotflock/members
| Bot Name: | Paradise Lost Book 1 |
| Handle: | milton_book1 |
| Description: | Tweeting John Milton's Paradise Lost Book 1 |
| Bot Name: | Paradise Lost Book 2 |
| Handle: | milton_book2 |
| Description: | Tweeting John Milton's Paradise Lost Book 2 |
| Bot Name: | Paradise Lost Book 3 |
| Handle: | milton_book3 |
| Description: | Tweeting John Milton's Paradise Lost Book 3 |
| Bot Name: | Paradise Lost Book 4 |
| Handle: | milton_book4 |
| Description: | Tweeting John Milton's Paradise Lost Book 4 |
| Bot Name: | Paradise Lost Book 5 |
| Handle: | milton_book5 |
| Description: | Tweeting John Milton's Paradise Lost Book 5 |
| Bot Name: | Paradise Lost Book 6 |
| Handle: | milton_book6 |
| Description: | Tweeting John Milton's Paradise Lost Book 6 |
| Bot Name: | Paradise Lost Book 7 |
| Handle: | milton_book7 |
| Description: | Tweeting John Milton's Paradise Lost Book 7 |
| Bot Name: | Paradise Lost Book 8 |
| Handle: | milton_book8 |
| Description: | Tweeting John Milton's Paradise Lost Book 8 |
| Bot Name: | Paradise Lost Book 9 |
| Handle: | milton_book9 |
| Description: | Tweeting John Milton's Paradise Lost Book 9 |
| Bot Name: | Paradise Lost Book 10 |
| Handle: | milton_book10 |
| Description: | Tweeting John Milton's Paradise Lost Book 10 |
| Bot Name: | Paradise Lost Book 11 |
| Handle: | milton_book11 |
| Description: | Tweeting John Milton's Paradise Lost Book 11 |
| Bot Name: | Paradise Lost Book 12 |
| Handle: | milton_book12 |
| Description: | Tweeting John Milton's Paradise Lost Book 12 |
Ginsberg Bot Flock
https://twitter.com/charlesreid1/lists/ginsbergbotflock/members
| Bot Name: | America |
| Handle: | gbf_america |
| Description: |
| Bot Name: | Aunt Rose |
| Handle: | gbf_auntrose |
| Description: |
| Bot Name: | An Open Window on Chicago |
| Handle: | gbf_chicago |
| Description: |
| Bot Name: | Cosmopolitan Greetings |
| Handle: | gbf_cosmo |
| Description: |
| Bot Name: | D.C. Mobilization |
| Handle: | gbf_dc |
| Description: |
| Bot Name: | Death and Fame |
| Handle: | gbf_deathfame |
| Description: |
| Bot Name: | Death On All Fronts |
| Handle: | gbf_deathfronts |
| Description: |
| Bot Name: | Ecologue |
| Handle: | gbf_ecologue |
| Description: |
| Bot Name: | Elegy Che Guevara |
| Handle: | gbf_elegy |
| Description: |
| Bot Name: | Five A.M. |
| Handle: | gbf_fiveam |
| Description: |
| Bot Name: | In the depths of the Greyhound Terminal |
| Handle: | gbf_greyhound |
| Description: |
| Bot Name: | Hospital Window |
| Handle: | gbf_hospital |
| Description: |
| Bot Name: | Howl |
| Handle: | gbf_howl |
| Description: |
| Bot Name: | Kaddish |
| Handle: | gbf_kaddish |
| Description: |
| Bot Name: | The Lion For Real |
| Handle: | gbf_lion |
| Description: |
| Bot Name: | The Velocity of Money |
| Handle: | gbf_money |
| Description: |
| Bot Name: | Transcription of Organ Music |
| Handle: | gbf_organ |
| Description: |
| Bot Name: | Sunflower Sutra |
| Handle: | gbf_sunflower |
| Description: |
| Bot Name: | A Supermarket in California |
| Handle: | gbf_supermarket |
| Description: |
GBF List
gbf_america gbf_auntrose gbf_chicago gbf_cosmo gbf_dc gbf_deathfame gbf_deathfronts gbf_ecologue gbf_elegy gbf_fiveam gbf_greyhound gbf_hospital gbf_howl gbf_kaddish gbf_lion gbf_money gbf_organ gbf_sunflower gbf_supermarket
Bot Software
MediaWiki Bots
charlesreid1.com Wiki Bot
Code for charlesreid1.com wiki bot: https://git.charlesreid1.com/wiki/pywikibot
See Pywikibot for details.
Wikipedia Bots
This is an interesting rabbit hole of things to learn more about and write more about. A funny metaphor for understanding the roles of bureaucracy and machines in bureaucracy.
Bot Control Panel
In order to start bots at startup, I created a startup script that will spin off instances of each bot into a separate screen. This script is then added to the list of startup scripts, so that if the machine dies, the bots will start again when the machine is restarted.
Here's how that works:
- I called screen from the command line (actually from a script) in a way that starts a detached, headless screen in the background.
- Each screen runs a bot flock (a group of related bots), and runs them forever until something goes terribly wrong.
- I added this script to
/etc/rc.localto make it run on boot.
Here's the script:
#!/bin/sh # -d -m # Start screen in "detached" mode. # Create new session but do not attach to it. # Useful for scripts. # -S # This option can give a name to the new screen. # Apollo bot flock /usr/bin/screen -d -m -S apollo /usr/bin/python /apollospacejunk/bot/ApolloBotFlock.py # Ginsberg bot flock /usr/bin/screen -d -m -S ginsberg /usr/bin/python /ginsberg/bot/GinsbergBotFlock.py # Milton bot flock /usr/bin/screen -d -m -S milton /usr/bin/python /milton/bot/MiltonBotFlock.py
Bot Ideas
See Bots/Ideas