> For the complete documentation index, see [llms.txt](https://immaharry.gitbook.io/reddit-automated-video-bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://immaharry.gitbook.io/reddit-automated-video-bot/python-reddit-api-wrapper-details.md).

# Python Reddit API Wrapper details

Head over to that folder where you have all the source files saved, rename the `.env.template` file to `.env`, you might get a prompt from windows, ignore it. Once you are done, right click the file and open it with **notepad***, although any IDE can be used.*&#x20;

Once you open the notepad file, you should see:\
`REDDIT_CLIENT_ID = ""`\
`REDDIT_CLIENT_SECRET = ""`\
`REDDIT_USERNAME = ""`\
`REDDIT_PASSWORD = ""`\
So the next we are going to be doing is the most essential part of this part. Avoid any errors here!

Head over to the apps page under the preferences page, <https://www.reddit.com/prefs/apps>. Once you are here, you should scroll down and see a button saying `create another app` (could be different if your first app), click it. Once you click it, you should see:

![](https://2149331147-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2q0TkpYZUhUkrpG6gYt%2Fuploads%2FCJx3CqaluegeiOcOD0Zo%2Fimage.png?alt=media\&token=f0239bb0-d94e-41c2-8e2c-5609ff657662)

Name: You can put in any name, for example: `automated-bot`\
Radio Button: Where it shows you the three radio buttons, pick the third one, that is the **script** one. \
Description: Put in anything, does not matter.\
About URL: Link any webpage like `https://google.com`. \
Redirect URI: Link any webpage like `https://google.com`.&#x20;

Great, you are done here, now just create the app!

![](https://2149331147-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2q0TkpYZUhUkrpG6gYt%2Fuploads%2F6NFHkrttC6DyEC4LkOaV%2Fimage.png?alt=media\&token=06ea47ee-274f-4306-a289-4255c2683103)

Copy the text highlighted blue, that is your `REDDIT_CLIENT_ID`, the text highlighted orange is your `REDDIT_CLIENT_SECRET` (DO NOT SHARE THIS WITH ANYONE, I WILL BE DELETING THIS APPLICATION). The text where it says developers (the one I blurred out, where there is an arrow pointing) is your `REDDIT_USERNAME` and `REDDIT_PASSWORD` is your reddit account's password. No, your information is **not logged.**

Head over to your `.env` file and enter the client ID, secret, username & password **within the quotations.** Hit `Ctrl+S` to save the file. For the love of god, ensure there are no mistakes here.&#x20;
