import instaloader def download_saved_videos(username, password): # Create an instance of Instaloader L = instaloader.Instaloader() # Login L.login(username, password) # Retrieve the profile of the account profile = instaloader.Profile.from_username(L.context, username) # Get the list of saved posts saved_posts = profile.get_saved_posts() # Define the name of the list you want to target target_list_name = "DLq" # Iterate over saved posts for post in saved_posts: if target_list_name in post.owner_profile.biography: if post.is_video: # Download the video L.download_post(post, target="#DLq_videos") # Call the function with your credentials download_saved_videos('luctrudel69', 'k#gn6td6!DBtR7h3EX')