Suttree.com: Casual Games, Social Software

Read more at the weblog »

PPS. A local proxy and web history index

I've been meaning to write a web proxy that *did* something to all the data is handled for some time now. I've also been meaning to mess around with Lupy for almost as long :)
PPS is the result of this. It's just a very simple proxy server and search engine - more of a proof of concept that anything approaching a completed project. In essence, I've just welded together a simple proxy server written by Suzuki Hisao and the Python port of Lucene, Lupy, by Divmod.

Once you setup your browser to make use of a proxy server running on 127.0.0.1:8000 then you can run the script and start browsing as normal. PPS will create a folder called pps_index where it will store all of its' indexed data. Each page you visit will be parsed and added to the history database. Eventually, when you need to search for a page that you've visited, or a phrase that you've read but can't remember where - PPS will come in handy. It indexes the URL, page title, date and text which means that you can search for something by date, url, title or just a word in the text of that page that you remember. Obviously, some words will appear in several places but Lupy has a very good phrase search too, so the more specific your search is, the better your results will be.

Usage
To run the proxy:
$ ./pps.py &

To search your web history:
$ ./search.py playaholics
Personal Proxy Server search results

Installation
You will need to install the Lupy before trying to run this. Once you have done that, pps.py can be run from anywhere.

Download
PPS can be downloaded from here:
Download PPS

Suttree Beatniks with better clothing, brought to you by Duncan Gough. About Archives Casual Game Dev Code Disclaimer EcoLocal Music Knows PMOG
Links for Thursday, February 14th, 2019