用 PRAW 炫耀 post

Flairing a post with PRAW

我正在与 Python Reddit API 客户端 PRAW 合作。我正在尝试向需要天赋的 subreddit 提交 post。到目前为止,这是我的代码:

subreddit = reddit.subreddit("test")
subreddit.submit(random.choice(p),selftext=random.choice(pc))

但是,在尝试提交之后...

praw.exceptions.RedditAPIException: SUBMIT_VALIDATION_FLAIR_REQUIRED: 'Your post must contain post flair.' on field 'flair'

添加天赋值后:

subreddit.submit(random.choice(p),selftext=random.choice(pc),flair="other")
TypeError: submit() got an unexpected keyword argument 'flair'

如何为我的 post 添加天赋? (只有相关 post 我能找到 is this outdated answer

https://praw.readthedocs.io/en/latest/code_overview/models/subreddit.html#praw.models.Subreddit.submit

根据模板的 flair_text_editable 值使用 flair_idflair_text