【发布时间】:2018-12-01 01:55:39
【问题描述】:
我正在尝试使用 praw.reddit 命令抓取 Reddit,但我不断收到以下信息:
prawcore.exceptions.OAuthException: unauthorized_client error processing
request (Only script apps may use password auth)
这是我的代码的顶部:(我删除了敏感项目)
import praw
import pandas as pd
import datetime as dt
reddit = praw.Reddit(client_id='zlpcoz08aNK8Bw', \
client_secret='', \
user_agent='comment_scraper 1.0 by /u/bullybear77777',
\
username='', \
password='')
我认为是因为我的 user_agent ID?我在网上看了,发现这似乎是结构,但我不确定。这里的任何帮助将不胜感激
【问题讨论】:
标签: python reddit scraper praw