-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I'm trying to download my saved posts, and I've unfortunately hit a snag... I cannot understand any of the Reddit API documentation.
Multiple times now, I've created an "app" as shown at extractor.reddit.client-id & .user-agent. After completing that process, I can never access the client-id as the app completely disappears from my account! (I am seeing the redirect, I just want to access it again after its been closed)
The one time I was successful, and downloading files, I believe I may have messed up my config file somehow?
I read through #5659 but unless I register a new app, and I can't seem to do that per:
https://www.reddit.com/r/reddithelp/comments/1p8onkn/in_order_to_create_an_application_or_use_our_api/
I don't know what to do.
My verbose log is almost identical to that other person... I'm 99% sure there's an issue with my client-id, as for some reason it is now identical to the refresh token, but VS Community doesn't have any file history, so I can't check what might have been there.
When I run it, this is what it looks like.
[gallery-dl][debug] Version 1.30.10 [gallery-dl][debug] Python 3.12.10 - Windows-11-10.0.26100-SP0 [gallery-dl][debug] requests 2.31.0 - urllib3 2.2.1 [gallery-dl][debug] Configuration Files ['%APPDATA%\\gallery-dl\\config.json'] [gallery-dl][debug] Starting DownloadJob for 'https://www.reddit.com/user/username/saved/' [reddit][debug] Using RedditUserExtractor for 'https://www.reddit.com/user/username/saved/' [reddit][debug] Using custom API credentials (client-id 8786***************************************) [reddit][info] Refreshing private access token [urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.reddit.com:443 [urllib3.connectionpool][debug] https://www.reddit.com:443 "POST /api/v1/access_token HTTP/1.1" 401 None [reddit][debug] Server response: {'message': 'Unauthorized', 'error': 401} [reddit][error] AuthenticationError: "401: Unauthorized"
I can send my entire config file if needed, but this should be the only relevant part:
"reddit": { "directory": [ "Reddit", "{subreddit}" ], "client-id": "8786XXXXXXXXXXXXXXXXX", "user-agent": "Python:<my_appname>:v1.0 (by /u/<username>)", "refresh-token": "8786XXXXXXXXXXXXXXXXX", "filename": { "extension == 'webm'": "{title[:220]}_{author}_{num}.mp4", "extension == 'gif'": "{title[:220]}_{author}_{num}.mp4", "extension == 'mp4'": "{title[:220]}_{author}_{num}.mp4", "extension == 'jpg'": "{title[:220]}_{author}_{num}.png", "extension == 'jpeg'": "{title[:220]}_{author}_{num}.png", "extension == 'webp'": "{title[:220]}_{author}_{num}.png", "extension == 'png'": "{title[:220]}_{author}_{num}.png" } },
My question, specifically, is can I retrieve the client-id once I have created the app? And also, is that the likely cause of the issue?