Skip to content

How to get Client_id ? #2100

@paulz1

Description

@paulz1

Describe the Bug

I know it very similar to #2094 , so sorry for that.
But I still don't understand how it should work.
So it seems that "create apps" (https://www.reddit.com/prefs/apps/) doesn't work anymore.

I read the announcement.
But how should we use PRAW actually?
I have my login/password on Reddit, but PRAW still want the client_id.
But there is no way to get this client_id...
So how could/should I use PRAW ?
Or we should consider that PRAW actually is only for the people who get client_id before ?

Desired Result

Getting client_id or get it works only with login/password.

Code to reproduce the bug

elif username and password :
            # Use username/password (alternative)
            reddit = praw.Reddit(
                client_id=None,
                client_secret=None,
                username=username,
                password=password,
                user_agent=user_agent,
                read_only=True
            )
            print(f"Reddit client initialized with username/password. Read-only: {reddit.read_only}")

My code does not include sensitive credentials

  • Yes, I have removed sensitive credentials from my code.

Relevant Logs

Error setting up Reddit client: Required configuration setting 'client_id' missing.

This code has previously worked as intended

I'm not sure, I haven't used this code before.

Operating System/Environment

Linux, Debian 12

Python Version

3.12

PRAW Version

7.8.1

Links, references, and/or additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions