script to download detail pages for each record