Reddit
reddit.com › r/redditdev › [praw 4] what do i input for client_id and client_secret?
r/redditdev on Reddit: [PRAW 4] What do I input for client_id and client_secret?
June 7, 2015 -
Hi, Im new to praw 4. Could someone tell me what to input to client_id and client_secret in the praw.Reddit() function?
Thanks
Read the Docs
praw.readthedocs.io › en › stable › getting_started › quick_start.html
Quick Start - PRAW 7.7.1 documentation
The recommended format is <platform>:<app ID>:<version string> (by u/<Reddit username>). For example, android:com.example.myredditapp:v1.2.3 (by u/kemitche). Read more about user agents at Reddit’s API wiki page. With these prerequisites satisfied, you are ready to learn how to do some of the most common tasks with Reddit’s API. ... For the sake of brevity, the following examples pass authentication information via arguments to praw.Reddit().
Read the Docs
praw.readthedocs.io › en › stable › getting_started › authentication.html
Authenticating via OAuth - PRAW 7.7.1 documentation
In order to use a password flow application with PRAW you need four pieces of information: ... The client ID is at least a 14-character string listed just under “personal use script” for the desired developed application
Read the Docs
praw.readthedocs.io › en › latest › getting_started › authentication.html
Authenticating via OAuth - PRAW 7.8.2.dev0 documentation
In order to use a password flow application with PRAW you need four pieces of information: ... The client ID is at least a 14-character string listed just under “personal use script” for the desired developed application
Cs205uiuc
cs205uiuc.github.io › guidebook › python › reddit-api.html
Reddit API in Python
Replace the value after app_key= with the client id for your app and replace the value after app_secret= with your client secret. Now save this file in YOUR_WORKBOOK_DIRECTORY/static/keys/oauth.ini where YOUR_WORKBOOK_DIRECTORY is the directory where your workbook is stored. With the config file now set up, you can now create your first app. As an example, we will start with writing an app that will print info about a user. To do this, create a new python file somewhere. With this file open in a text editor, enter the following code: import praw import OAuth2Util r = praw.Reddit("MyFirstApp") # The one argument being passed here is the user agent string o = OAuth2Util.OAuth2Util(r, configfile="YOUR_WORKBOOK_DIRECTORY/static/keys/oauth.ini") #if you are working within the workbook directory, change configfile to ../static/keys/oauth.ini print(r.get_me())
Stack Overflow
stackoverflow.com › questions › 68449320 › 401-http-response-when-i-load-client-secret-and-client-id-from-praw-ini
python - 401 HTTP Response, when I load client secret and client-ID from praw.ini - Stack Overflow
import praw reddit = praw.Reddit( client_id="´............", client_secret="............", password="............", username="..........", user_agent="TIL by u/........" ) subreddit = reddit.subreddit('learnpython')
Stack Overflow
stackoverflow.com › questions › 72256302 › how-to-get-the-client-id-client-secret-and-user-agent-parameters-from-reddit-wi
How to get the client_id, client_secret and user_agent parameters from Reddit with discord.py - Stack Overflow
My problem is that I need 3 parameters, client_id, client_secret and user_agent, which I don't know how to get. Here's the code I found: reddit = praw.Reddit(client_id='CLIENT_ID HERE', client_secret='CLIENT_SECRET HERE', user_agent='USER_AGENT HERE') @bot.command() async def meme(): memes_submissions = reddit.subreddit('memes').hot() post_to_pick = random.randint(1, 10) for i in range(0, post_to_pick): submission = next(x for x in memes_submissions if not x.stickied) await bot.say(submission.url)
Read the Docs
praw.readthedocs.io › en › latest › getting_started › quick_start.html
Quick Start - PRAW 7.8.2.dev0 documentation
The recommended format is <platform>:<app ID>:<version string> (by u/<Reddit username>). For example, android:com.example.myredditapp:v1.2.3 (by u/kemitche). Read more about user agents at Reddit’s API wiki page. With these prerequisites satisfied, you are ready to learn how to do some of the most common tasks with Reddit’s API. ... For the sake of brevity, the following examples pass authentication information via arguments to praw.Reddit().
Read the Docs
praw.readthedocs.io › en › v3.6.2 › pages › oauth.html
PRAW and OAuth — PRAW 3.6.2 documentation
The random string of letters under your app’s name is its client id. The random string of letters next to secret are your client_secret and should not be shared with anybody. At the bottom is the redirect_uri. ... This example, like most of the PRAW examples, binds an instance of PRAW to the r variable.
Read the Docs
praw.readthedocs.io › en › docs › getting_started › quick_start.html
Quick Start — PRAW 4.0.0rc2 documentation
import praw my_user_agent = "my user agent" my_client_id = "my client ID" my_client_secret = "my client secret" reddit = praw.Reddit(user_agent=my_user_agent, client_id=my_client_id, client_secret=my_client_secret)
Stack Overflow
stackoverflow.com › questions › 22833116 › praw-api-login-fails-with-client-error
python - Praw: API Login Fails with Client Error - Stack Overflow
Change your client's User-Agent string to something unique and descriptive, including the target platform, a unique application identifier, a version string, and your username as contact information, in the following format: <platform>:<app ID>:<version string> (by /u/<reddit username>)
Python Programming
pythonprogramming.net › introduction-python-reddit-api-wrapper-praw-tutorial
Python Reddit API Wrapper (PRAW) tutorial p.1
Once done, you should see your secret, and then the Client ID sits under your app's name in the top left. It'll look something like "l9QcKj32sa_x." Once you have your Reddit instance, the world of Reddit just opened up to you! Let's see what you can do. At least for me, I am using a brand new ...
Read the Docs
praw.readthedocs.io › en › latest › getting_started › configuration › options.html
Configuration Options - PRAW 7.8.2.dev0 documentation
... (Required) A unique description of your application. The following format is recommended according to Reddit’s API Rules: <platform>:<app ID>:<version string> (by u/<reddit username>). ... (Required) The OAuth client ID associated with your registered Reddit application.
GitHub
github.com › praw-dev › praw › issues › 650
Required configuration setting 'client_id' missing · Issue #650 · praw-dev/praw
Traceback (most recent call last): File "reddit_scraper.py", line 13, in <module> r = praw.Reddit(user_agent=user_agent) File "/Users/brianlin/anaconda/lib/python2.7/site-packages/praw/reddit.py", line 92, in __init__ raise ClientException(message.format(attribute)) praw.exceptions.ClientException: Required configuration setting 'client_id' missing.
Read the Docs
praw.readthedocs.io › en › latest › code_overview › reddit_instance.html
The Reddit Instance - PRAW 7.8.2.dev0 documentation
import praw reddit = praw.Reddit( client_id="CLIENT_ID", client_secret="CLIENT_SECRET", password="PASSWORD", user_agent="USERAGENT", username="USERNAME", ) Parameters: site_name (str | None) config_interpolation (str | None) requestor_class (type[prawcore.requestor.Requestor] | None) requestor_kwargs (dict[str, Any] | None) config_settings (str | bool | int | None) __init__(site_name=None, *, config_interpolation=None, requestor_class=None, requestor_kwargs=None, **config_settings)¶ ·