I need to download all stories from a lot of profiles. How can I do it?
I try to run example from the documentation like this
for story in L.get_stories():
for item in story.get_items():
L.download_storyitem(item, ':stories')
but I get error "TypeError: expected str, got bool"
And if I am right to understand in this case I'll get all stories from my profile, but I want to get stories from any profile if it is open.
I use the last version of Instaloader
L = instaloader.Instaloader()
L.login(USER, PASSWORD)
for story in L.get_stories():
for item in story.get_items():
L.download_storyitem(item, ':stories')
This following code from docs will download all stories you can see on your friends profile and it works just fine for me.
_Python 3.6.9
Instaloader 4.3.2_
You can download stories from specific user like this
L = instaloader.Instaloader()
L.login(USER, PASSWORD)
L.download_stories(userids=[460563723])
# You can pass multiple ids like [460563723, 460563723, 460563723]
To get profile ID you can use
L = instaloader.Instaloader()
profile = L.check_profile_id("SelenaGomez")
>>> profile.userid
460563723
There has been no activity on this question for an extended period of time. This issue will be closed after further 14 days of inactivity.
Is there any possibility to pass the "dirname_pattern" to
L.download_stories(userids=[])
?
If i download it, all content goes in the : Stories folder and not in the {target} folder.