Menu Close

How to get started on scraping Reddit with Praw?

How to get started on scraping Reddit with Praw?

Recently I was trying to get started on a project that would use Natural Language Processing to clas s ify which subreddit a given post came from. For instance, this model should be able to predict whether or not a post came from the r/Python subreddit or the r/Rlanguage subreddit.

Where do I put the redirect Uri in PRAW?

Once that’s done, make sure to select the “script” option and then make sure to put the following into the redirect uri box: http://localhost:8080. This is suggested by the PRAW docs, but is apparently necessary because Reddit requires a redirect uri even if our application doesn’t use it.

Do you need redirect Uri to scrape Reddit?

This is suggested by the PRAW docs, but is apparently necessary because Reddit requires a redirect uri even if our application doesn’t use it. If successful, you should be provided with two strings of seemingly random characters.

Where can I find a praw.ini file?

You can refer to the docs regarding praw.ini files, but do make sure that file is in fact called “praw.ini” and that it’s located in the same directory as the one your scraping script will be in. It is possible to define multiple credentials in this file, but today we’ll only be using one so we’ll stick with the [DEFAULT] site.

How to schedule a post on Reddit now?

Click here to schedule a post now! Save time logging in and out and keep your Reddit game on point with easy multi-account management. Add as many accounts as you like, and choose which account you’d like to post as when you schedule the time. Try the Subreddit Analysis Tool to figure out the best time to post to a particular subreddit.

Can you upload multiple posts at once on Reddit?

Upload posts all at once in a single csv file. Supports different post types and even multiple linked reddit accounts. Over 50,000 users served. Sign in with Reddit to get started!

How to post articles in a specific Reddit group?

When you’re ready to post, double check that “ Send me post reply notifications ” is checked at the very bottom, then click on “Post” and it’s up and ready for its moment in the Reddit spotlight! Of course, only you will see the “Edit Post” option (compare these options with those shown in the very first image to see what I mean).

What’s the best way to post on Reddit?

That’s okay, it’s kind of the Reddit Way to have visually interesting posts. They help gain attention and ultimately engage with other readers. When you’re ready to post, double check that “ Send me post reply notifications ” is checked at the very bottom, then click on “Post” and it’s up and ready for its moment in the Reddit spotlight!