'Instaloader - Download All Stories with Custom Naming Patterns

I'm trying to download all stories of what my profile follows using "Instaloader" in a Python module. The default naming pattern uses "{date_utc}_UTC". I want to name all stories with the "profilename-dateuploaded" pattern and store them in separate folders based on profile names, but I don't know how to pass the parameters through, this is what I have:

import instaloader

L = instaloader.Instaloader()
L.login(user, password)

for story in L.get_stories():
    for item in story.get_items():
        L.download_storyitem(item, ':story')

Where exactly can I pass those arguments? Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source