Dear all,
for tomorrow lab we will need credentials to access Reddit.
Below is what you need to do
Best,
Tomaso Erseghe
------------ How to Create a Reddit application and obtain API credentials ------
-
Go to Reddit's App Preferences:
https://www.google.com/url?q=https%3A%2F%2Fwww.reddit.com%2Fprefs%2Fapps -
Create a New Application:
- Ensure you’re logged in to your Reddit account.
- Scroll down to the section titled "Developed Applications".
- Click on the "Create App" or "Create Another App" button.
-
Fill in Application Details:
- Name: Enter a name for your application, such as "Reddit Data Downloader".
- App Type: Select "script" (for personal, non-distributed use).
- Description: Write a short description (e.g., "An app to download Reddit data").
- About URL: Leave this blank unless you have a website for your app.
- Redirect URI: Enter a redirect URI (e.g.,
http://localhost:8080). - Permissions: Leave as default.
-
Create the Application:
- After filling in all fields, click "Create app".
-
Retrieve Your Credentials:
- client_id: This alphanumeric string is located directly under the application name.
- client_secret: Found in the application details and labeled as "secret".
- Save these credentials securely, as they are needed to authenticate your API requests.