Skip to content

Instantly share code, notes, and snippets.

@alimisumanth
alimisumanth / Automated Python Script to download windows spotight images.py
Last active February 28, 2021 09:35
Automated Python Script to download windows spotight images
import os
import shutil
user = os.environ['USERNAME']#To get the user's username
#storing the default spotlight lockscreen images in a variable named soure_folder
source_folder=r'C:\Users\\'+user+'\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets'
#prompt to get custom destination path from user
destination_folder = input('Do you want to choose custom destination folder? if yes provide the path else press enter')
if len(destination_folder)<1 and not os.path.isdir(destination_folder):