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

Is there a confirmation for Refreshing Private Access Token? #6834

Closed
swingking03 opened this issue Jan 15, 2025 · 3 comments
Closed

Is there a confirmation for Refreshing Private Access Token? #6834

swingking03 opened this issue Jan 15, 2025 · 3 comments

Comments

@swingking03
Copy link

It's been over 6 months since I last used gallery-dl to rip subreddits, but last I used it, it was working great. Now, I get the 429 too many requests constantly from redgifs. My config file is below.

When the command reads "Refreshing private access token" is there a confirmation after that or does it just go straight to downloading?

       `"client-id": "**********",
        "user-agent": "Python:*********:v1.0 (by /u/me)",
        "refresh-token": "***************",
        "comments": 0,
        "morecomments": false,
        "date-min": 0,
        "date-max": 253402210800,
        "date-format": "%Y-%m-%dT%H:%M:%S",
        "id-min": null,
        "id-max": null,
        "recursion": 0,
		"image-filter": "extension in ('mp4', 'gif')",
        "videos": true,
        "parent-directory": true,
        "parent-metadata": "_reddit",
		"filename": "{subreddit}_{author}_{date:%Y-%m-%d}_{title}.{extension}"

    },
    "redgifs":
    {
		"directory": {
			"'_reddit' in locals()": []
		},
			"image-filter": "extension in ('mp4', 'gif')",
		"filename": "{_reddit[subreddit]}_{_reddit[author]}_{_reddit[date]:%Y-%m-%d }_{_reddit[title]}.{extension}"
    },

`

@mikf
Copy link
Owner

mikf commented Jan 15, 2025

is there a confirmation after that or does it just go straight to downloading?

There is no confirmation, it goes straight to downloading. When there is no error during the "refresh" step, it succeeded.

I get the 429 too many requests constantly from redgifs

Those are completely unrelated to Reddit and its access token messages.

@swingking03
Copy link
Author

Is there a way to get around or improve the length of hits before redgifs gives the 429 error?

@swingking03 swingking03 changed the title Is ther ea confirmation for Refreshing Private Access Token? Is there a confirmation for Refreshing Private Access Token? Jan 15, 2025
@mikf
Copy link
Owner

mikf commented Jan 17, 2025

You could try any of the sleep options.

  --sleep SECONDS             Number of seconds to wait before each download.
                              This can be either a constant value or a range
                              (e.g. 2.7 or 2.0-3.5)
  --sleep-request SECONDS     Number of seconds to wait between HTTP requests
                              during data extraction
  --sleep-extractor SECONDS   Number of seconds to wait before starting data
                              extraction for an input URL

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