writing scraper output to csv file