An attempt to write a web spider