Friday, November 30, 2007

Create Your Own Search Engine with Python

This blog has moved to http://www.zackgrossbart.com.

2 comments:

Editor said...

Very nice idea and the tester works fine on the local pc but only 500 error messages when put on the server (with permissions; cgi enabled etc). Should there be a "content-type: text/html" somewhere in the script?

Editor said...

I've got it working now for my charity site iprescue.org.uk. Thanks!! Apart from the obvious configurations, the only things I needed to change to the search.py file were the addition of print "Content-type: text/html\n" (which I inserted immediately before running doresultspage()) and adding a variable BASE_URL to use in the doresults funtion (where it refers to the "test" directory). Fantastic to find a really useful script like this that works!