map reduce code for scrape