a simple spider in java