-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Request] Site Support: baraag.net #665
Comments
Cool beans. Updated to the latest dev build and it worked! Just a few followup questions before I go. I've noticed that there's a Mastodon structure listed for the example-config in the docs bin; since baraag is part of Mastodon, is that structure necessary to add to my config (like to get full/"orig" pictures) or is that unnecessary to get the most out of the baraag extractor? And if it is necessary, how would a baraag configuration be structured, as an example? |
You can configure The Mastodon structure is there to let gallery-dl dynamically create extractors for Mastodon instances with the given OAuth credentials for them. The important part here is the Back in the day, pawoo.net (and probably most Mastodon instances) had a rate limit of something like 100,000 requests every 5 minutes, and having a global (I've also added some code that waits if the rate limit gets reached (220c06b), but that should never happen if you're the only one who uses your specific access token) (*) config example {
"extractor":
{
"baraag":
{
"filename": "{filename}.{extension}"
},
"mastodon":
{
"baraag.net": {
"access-token": "..."
},
"pawoo.net" : {
"access-token": "..."
}
}
}
} |
Alright, got an Oauth token, though the example claims that there can be a Is that similar to Deviantart where you register an app, because it looks very similar, but there isn't a step-by-step in the docs bin. Also, I tried to run |
They are both using OAuth2, so yes, this is very similar. For pawoo.net I've manually, more or less by hand, registered an "app" several years ago and used something as a redirect URL, which isn't compatible anymore it seems. I've set up a new "app" and updated the OAuth credentials with 88fca0a. Getting an access token for pawoo.net should work now.
Ah yes, this is also from "several years ago", way before I added support for basically all mastodon instances. I should go and update that ... |
{
"extractor":
{
"baraag":
{
"filename": "{filename}.{extension}"
},
"mastodon":
{
"baraag.net": {
"access-token": "..."
},
"pawoo.net" : {
"access-token": "..."
}
}
}
}
Okay, so in these cases (a Mastodon instance like Pawoo) the |
Alright, updated to the latest dev build and managed to get an access-token for pawoo. Only thing I'd like to know is how to get Thank you for all your hard work! |
@Hrxn You can use both, @biznizz you don't need your own edit: if you really want to get your own client-id/-secret, you can do that by opening an interactive session in your Python interpreter and calling >>> import gallery_dl.extractor as e
>>> extr = e.find("oauth:mastodon:baraag.net")
>>> extr.instance
'baraag.net'
>>> extr._register(extr.instance)
{'id': '...', 'name': '...', 'website': None, 'redirect_uri': 'http://localhost:6414/', 'vapid_key': '...', 'client-id': '...', 'client-secret': '...'} |
Wow, thank you. I understand that getting my own client-ids/secrets is unnecessary, but I like to be prepared. Have used your method to put in client-ids/secrets for both pawoo and baraag, thank you very much! |
It looks like there's a twitter alternative called baraag.net for NSFW artists. Was wondering if it could be considered up for support consideration.
Here's a SFW post: https://baraag.net/@ADullPerson/103909177325116150
The text was updated successfully, but these errors were encountered: