jonahsnider / bootleg

Download media from social media
Apache License 2.0
3 stars 0 forks source link

API tokens for private posts #4

Closed jonahsnider closed 3 years ago

jonahsnider commented 3 years ago

Many social media services have a concept of private posts, posts that can only be viewed when you are authenticated as someone who is allowed to view them.

For example, Instagram uses the sessionid cookie for letting users view posts from private accounts that they follow.

Currently there is no way to download private posts of any kind, but adding support would change that and likely would decrease rate limits since you're signed in.

Since authentication is a per-service item, there's a few ways to allow inputting this. I think the best bet is adding a new type of value to the file-parser. Doing this would require writing some documentation on the spec for parsing files.

Regardless of how authentication is inputted Downloaders would still need to have a way to access it. Having a property on the Downloader class defined in the constructor is the most straightforward solution, and would only need slight refactoring of existing code.

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.93. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.