mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.9k stars 976 forks source link

[Instagram] [story] download story by url (convert story url to filter) #2088

Closed jl452 closed 2 years ago

jl452 commented 2 years ago

like this https://github.com/mikf/gallery-dl/issues/1149#issuecomment-743928497

If you want to limit the download to only a specific story ID, use --filter "media_id == 'STORY ID'"

story url from instagram:

https://instagram.com/stories/geekmig/2724343156064789461?utm_source=ig_story_item_share&utm_medium=share_sheet

usage

gallery-dl -u my_instagram_login https://instagram.com/stories/geekmig/2724343156064789461...blablabla

https ://instagram.com /stories/geekmig / 2724343156064789461...blablabla autoconvert in gallery-dl to

gallery-dl -u my_instagram_login https://instagram.com/stories/geekmig --filter "media_id == '2724343156064789461'"

Hrxn commented 2 years ago

Yes, and? What exactly is the issue here?

mikf commented 2 years ago

Having to type --filter "media_id == '…'" each time is a chore and it should be made possible in a more user friendly way, I'd guess.

jl452 commented 2 years ago

I usually use gallery-dl with copy the url from instagram's app, and here I will have to carefully copy the part of the url in a separate parameter (even in quotes, and I have to be careful not to accidentally erase the quotes when I edit this)

ps: the full story's url works in gallery-dl without objection, it is only necessary to remove the part with & - "bash" perceives it as a service symbol when I not use quotes for url

pss: the ability to download all the stories is also useful, sometimes you need to download 9 out of 10 - it's easier to download all 10 and delete 1