Learning inspired by spider fascination