from zipfile import ZipFile file_name = file_path with ZipFile(file_name, 'r') as zip: zip.extractall() print('Done') #REFRESH PAGE