Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Site request] Patreon #226

Closed
ghost opened this issue Apr 23, 2019 · 7 comments
Closed

[Site request] Patreon #226

ghost opened this issue Apr 23, 2019 · 7 comments

Comments

@ghost
Copy link

ghost commented Apr 23, 2019

Hey, can you support Patreon? if you can, make sure the file-attachment and date is supported. username and password may be needed for this function

@Hrxn
Copy link
Contributor

Hrxn commented Apr 23, 2019

An account for testing purposes my be required, otherwise access to 'premium' content is likely not possible. And this would kinda defeat the purpose of this site.

@ghost
Copy link
Author

ghost commented Apr 23, 2019

An account for testing purposes my be required

that is why I said, "username and password may be needed for this function." But still, the most challenging thing is the testing

@Hrxn
Copy link
Contributor

Hrxn commented Apr 23, 2019

This was my subtle way of asking if you would be willing to provide an account for testing purposes,

@mikf
Copy link
Owner

mikf commented May 7, 2019

You can send me an email.

@mikf
Copy link
Owner

mikf commented May 14, 2019

I've been playing around with Patreon's OAuth API for quite a bit, only to realize that there is no way to download rewards with it. It is only really useful if you are a creator and want to decide if one of your patrons should be allowed to access a specific reward, but rather useless if you are a patron yourself. (https://www.patreondevelopers.com/t/api-for-patrons/130)

There are, however, internal undocumented API endpoints that allow you to get a creator's posts and its rewards: https://www.patreon.com/api/stream and https://www.patreon.com/api/posts. So that's what I'll be using, but these endpoints don't recognize OAuth tokens and logging into Patreon is impossible ("protected by reCAPTCHA", verification emails). The only remaining option would be to login in your browser and export your cookies (just the session cookie might be enough).

mikf added a commit that referenced this issue May 17, 2019
@mikf
Copy link
Owner

mikf commented May 17, 2019

Patreon extractors are done. You can download from a specific creator page (https://www.patreon.com/<creator_name>) or your own account's feed (https://www.patreon.com/home)

To get paid rewards, you have to somehow get a session_id cookie from your browser and make it known to gallery-dl. Either with a cookie file and --cookies, or as a direct entry in your config file:

        "patreon": {
            "cookies": {
                "session_id": "..."
            }
        },

(a session_id cookie is valid for 28 days, but its lifetime might get extended whenever you visit patreon.com (?) ... not sure)

@ghost
Copy link
Author

ghost commented May 17, 2019

thanks

@ghost ghost closed this as completed May 17, 2019
mikf added a commit that referenced this issue May 17, 2019
- fix datetime parsing
- rename 'user' to 'creator'
- convert 'id' to integer
- improve tests
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants