code snipets to crawl the web