...

/

Create Flairs and Collections

Create Flairs and Collections

Understand how to create flairs and collections using the Python Reddit API Wrapper (PRAW).

We'll cover the following...

Create flairs

Users use flairs to tag posts to a particular subcategory, which allows other users to browse that subcategory. Flairs are like Twitter hashtags, but for Reddit. To create a flair, we use the add() method of the SubredditLinkFlairTemplates class. Once a flair gets added, we can add it to a post.

Here are some important parameters we'll use to call the method:

Parameter

Type

Category

Description

text

string

required

This is a string of random characters, used to authenticate a user

text_editable

boolean

required

This allows Redditors to modify the flair text. By default the value is False.

Click "Run" to add a new ... ...