Script for extracting and organizing downloaded material