loreguerra / agentcooperbot

Like chatting with Special Agent Dale Cooper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Special Agent Dale Cooper bot

A Dale Cooper bot styled as an IRC chat room. The user is asked to supply a nickname and sign-in/validation/lag time is simulated with sleep() function.

##Run program

Clone the repo. In command line, use python run.py and follow on-screen instructions.

##Comments

Right now, the quotes are extracted according to actor URL, cleaned up, and dumped into a CSV file using a feed export.

In the future, I'd like to set up a pipeline and use a CSV item exporter to export the data to a CSV file, so everything is automated.

I currently have the spider cleaning up the extracted data before writing to the item and then fetch_data.py reading the CSV, cleaning it up again, and adding to a list of strings. I'd like to have either the spider or fetch_data.py do one process to clean up the text, but not both files with two separate processes.

##Ideas for future versions

  1. Scrape more sites for more quotes
  2. Add emojis
  3. Modify the Markov module
  4. Spell check quotes
  5. Check for duplicate words in a row

About

Like chatting with Special Agent Dale Cooper


Languages

Language:Python 100.0%