Ashish Kulkarni
May 18, 2021

--

The praw.ini file shouldn't be moved. If you want the bot account details to be added in your current directory, you can modify the line:

r = praw.Reddit('bot1')

to:

r = praw.Reddit(client_id='' , client_secret='' , password='' , username='' , user_agent='')

The reason most people don't do this is so that you can share your code with others, or keep it on a public GitHub repo without exposing sensitive details.

--

--

Ashish Kulkarni
Ashish Kulkarni

Written by Ashish Kulkarni

Student of Computer Science | Bengaluru, India

No responses yet