Python Liberation Front

askMerlin and Decision Analysis, my personal Python programs: Can you help debug this code?


I have done a few things in the past week or two, with my askMerlin and Decision Analysis scripts.:

1. I got cgi working with a simple version of one of the programs.

2. I got the web-enabled askMerlin program running using pyGoogle and the Google api, replacing the web-scraping algorithms I used previously. The web scraping techniques always broke over time.

3. Now I need to get a cgi enabled version of the Google api version working online.

For the latest version of my stuff, see AskMerlin1000.py. This is a command line interface. The first six (6) options are stand alone, but the last two (2) options require an active internet connection (and they use the Google api, so they also require pyGoogle).

Option 8 is fully working and quite fun, surprisingly accurate; Merlin will answer *any* question that you ask and give him options to choose from. Option 7 is a more sophisticated version of the same thing, but it has a bug I have not yet solved. Can you help? The algorithm is straight forward, I think, if you study the code. This version (option 7) is the one I want to get up and running as an online cgi program. I think it will-be quite fun!

Posted by Ron Stephens @ 2004-10-20 14:47:50 [permalink]
Categories: python