Code for batch crawling urls