【发布时间】:2021-01-22 14:17:15
【问题描述】:
我正在尝试制作 Reddit 转发器,但每次运行程序时都会显示 “prawcore.exceptions.OAuthException:未授权_客户端错误处理请求(只有脚本应用可以使用密码验证)”
def bot_login():
print('Logging in...')
r = praw.Reddit(username='**',
password='**',
client_id='**',
client_secret='**',
user_agent='None')
print('Logged in as user: "'+str(r.user.me())+'"')
print("------------------------------------------------------------------")
return r
知道如何解决它吗?
【问题讨论】: