1,241 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
54
views
How to Get Reddit Crawler to Use my Video Preview?
I have a React page which gets re-routed for crawlers to a SEO backend page in nodejs + express. And I want to make it work with reddits crawler to get embedded videos, which it doesn't.
When I post ...
0
votes
1
answer
102
views
Bad request while accessing the Authorization URL for PRAW Reddit API wrapper
I'm trying to Authenticate via OAuth using Code Flow method for my python script. while do so, I'm getting following message while accessing the obtained authorization url - "bad request (reddit....
1
vote
0
answers
61
views
Add parameter to QOAuth2AuthorizationCodeFlow using setModifyParametersFunction
I am working on a Qt project. I want to establish permanent access to Reddit API using the refresh_token that reddit's OAuth Authentication provides after successful authentication and that Qt's ...
0
votes
0
answers
34
views
scraping gilded comments using PRAW from reddit
I am trying to extract gilded comments from reddit using PRAW library but receiving HTTP 400 code. I am using the following code snippet provided in the documentation:
for item in reddit.subreddit(&...
1
vote
1
answer
149
views
PRAW (Reddit) - reddit variable is not defined?
Very much a noob question. I'm trying to code with copilot and some (many) things in the code need fixing. However I can't progress past this error. I've installed and imported praw, I've defined the ...
0
votes
1
answer
115
views
Reddit API script for Discord bot not working
So I've been following a tutorial for scripting your own Discord bot and am completely stumped when trying to make this script for fetching random memes from Discord via the bot. When I run my main ...
0
votes
1
answer
330
views
How can I automate sharing Reddit posts to unlock an achievement using JavaScript?
I’m trying to write a JavaScript script to automate sharing posts on Reddit to unlock the "Sharing Pro" achievement (which requires sharing 100 posts). My script is intended to:
Locate the ...
-1
votes
1
answer
129
views
How to force JavaScript fetch api to request page in desktop mode?
I use the JavaScript fetch api to download json files from Reddit's public json endpoints. Recently, Reddit has made their json endpoints respond differently based on whether the browser is in ...
1
vote
0
answers
46
views
Reddit auth error 401 when running autopost command in discord.js bot
I’m running into some trouble with my Discord bot that’s supposed to fetch images from Reddit. I keep hitting this error:
Error obtaining Reddit access token: { message: 'Unauthorized', error: 401 } ...
1
vote
1
answer
245
views
Embedding a Reddit post widget without the "Read More" button
I am trying to embed a reddit widget into my qualtrics survey and it is working fine, but I don't like that the widget by default doesn't show the full post and has a "read more" button (see ...
0
votes
1
answer
175
views
Can't click on the Reddit login button using Selenium
I'm trying to click on the loging button using Selenium, but it's not working somehow. I checked other repos and also previous threads but cannot find the solution. Here is my code:
import time
from ...
-1
votes
1
answer
81
views
How do I create a comment with reddit's api using fetch?
async function commentOnRedditPost(postId, commentText, accessToken) {
const url = `https://oauth.reddit.com/api/comment`;
// const params = new URLSearchParams();
console.log("...
0
votes
0
answers
160
views
Reddit API returning 200 but no access_token
When I use the following URI in Postman, I am successfully getting the access_token back, but when I use the same URI in my .NET app, I am getting a 403 message.
https://www.reddit.com/api/v1/...
0
votes
1
answer
352
views
Scrape reddit post and comments
I'm trying to scrape Reddit posts and comments using Node.js and Cheerio, but I'm not getting the expected results. Here’s a brief overview of my setup and the issues I’m facing.
Setup:
Node.js: v14....
1
vote
0
answers
580
views
TypeError: 'ChatCompletion' object is not subscriptable
Here's my code. I'm just messing around and trying to make a simple Reddit bot but there are SO MANY ERRORS. i've spent days just fixing the errors... Can someone help me not only fix this error but ...