Questions tagged [reddit]

Use for questions involving the API for Reddit, a social news ranking website.

Reddit, pronounced /ˈrɛdɪt/ or "red-it", is a social news ranking website.

Users have the option to submit links to content on the Internet or submit "self" posts that contain original, user-submitted text.

Other users may then vote the posted links "up" or "down" with the most successful links gaining prominence by reaching the front page.

In addition, users can comment on the posted links and reply to other commentators consequently forming an online community. Reddit users (also referred to as redditors) may create their own topical sections, known as subreddits, for which to submit their links and to comment, while appealing to a specific niche.

Reddit is open source, and the primary codebase is hosted on Github. An extensive API is also provided.

1261 questions
5
votes
2 answers

Reddit API in php returns bad captcha for submitting story

Using php for Reddit api for submitting a story returns bad captcha as error. I am able to login using the api and get usermod and captcha perfectly using api. Ideally if the reddit_session cookie is passed it should post and not return bad captcha…
Ramji
  • 2,536
  • 7
  • 34
  • 54
5
votes
3 answers

Any reddit alternatives?

So I asked this question recently on the existence of link submission + reputation systems. The response I got excited me to the core. I mean, reddit had it open sourced so why re-invent the wheel. But after reading this article, I was completely…
Legend
  • 113,822
  • 119
  • 272
  • 400
5
votes
2 answers

Where do mathematical algorithms for Reddit's ranking, as an example, come from?

recently I was looking at Reddit's algorithm for determining what makes a post a "hot" topic and which content is suitable for the reddit homepage. the article I was reading is here: http://amix.dk/blog/post/19588 I've noticed they have mathematical…
bakz
  • 59
  • 1
  • 2
5
votes
1 answer

How I do use oauth in the reddit api in browser?

Nothing I do works, and I keep getting ridiculous CORS errors and other things. I just want to do a normal oath to log a user in, through the browser. I want to use snoowrap, but I can't even get far enough to use it, because i need a refresh…
stackers
  • 2,701
  • 4
  • 34
  • 66
5
votes
2 answers

I want to scrape reddit data using praw. I am getting raise ResponseException(response) error after adding the for loop

subredditcmv=reddit.subreddit('changemyview') cmv_subreddit=subredditcmv.top(limit=15) cmv_dict={"Title":[], \ "Score":[], \ "id":[], \ "number_of_comments":[],\ "post":[],\ "created":[] …
5
votes
0 answers

Which Markdown editor does Reddit use?

The new redesign of Reddit features a really slick WYSIWYG/Markdown editor. Screenshots: Once clicking on "Switch to markdown": Is this an open-source library available for implementation, or is this entirely an internal Reddit-only solution? On…
Lucas
  • 16,930
  • 31
  • 110
  • 182
5
votes
1 answer

Unable to retrieve access token with Application Only OAuth using Reddit API

So I have read the documentation at the following link https://github.com/reddit-archive/reddit/wiki/OAuth2. I am trying to retrieve an access token for my application which only requires an Application Only OAuth since it does not require the user…
reckless
  • 741
  • 12
  • 53
5
votes
2 answers

How to define export for a module in javascript?

Hey I am doing a small project using react-app and I have been trying all day to create export for this module. I have installed it with npm, and i want to edit it so i can import and use it in my app.js I have tried to define "reddit" using…
Ben Porat
  • 583
  • 1
  • 4
  • 6
5
votes
1 answer

Connection reset by peer - reddit api

I am trying to make a long-running Python script that periodically queries Reddit for new submissions/comments using PRAW 4.4.0 and at first I initialize the object like this: redditClient = praw.Reddit( client_id=constants.REDDIT_CLIENT_ID, …
Dorin
  • 2,167
  • 4
  • 20
  • 32
5
votes
2 answers

Reddit API returns HTTP 403

Following the OAuth2 login flow described at https://github.com/reddit/reddit/wiki/OAuth2 I got to the point where POST-ing to https://www.reddit.com/api/v1/access_token returns something like this: {'token_type': 'bearer', 'expires_in': 3600,…
nagylzs
  • 3,954
  • 6
  • 39
  • 70
5
votes
2 answers

Reddit oAuth 2 for Android "userless" app with Retrofit

I'm trying to implement the Reddit oAuth2 (every app that utilizes Reddit content has to have this implemented) in Android based 'userless' application and I'm following the guidelines. I registered an app and get the respective client_id. I'm…
ViksaaSkool
  • 738
  • 4
  • 18
5
votes
1 answer

Can someone explain last year's reddit exploit to me?

Last year a user managed to inject arbitrary javascript into reddit's markdown syntax. Can someone explain how this was done and how I can test whether my site is similarly vulnerable?
MichaelBlume
  • 228
  • 1
  • 6
5
votes
1 answer

Posting a comment to Reddit API with NodeJs Request module

So I'm building a pretty silly bot for a fellow Redditor. And it needs to log in, then post a comment. The Reddit documentation is fairly sparse, IMHO, so I'm hoping that someone can show me where I'm going wrong. As I understand it, I need to post…
joeLepper
  • 201
  • 3
  • 10
5
votes
1 answer

How does Reddit track top posts

Reddit has different buckets for Top posts. They have "This Hour", "Today", "This Week", "This Month" "This Year" "All Time". The best way I can think of to create these lists would be to save each vote with a timestamp so that you can calculate…
tleef
  • 3,516
  • 1
  • 24
  • 34
5
votes
1 answer

reddit api paging : before is always null

Im using reddit api and i want to paginate results , after works as expected but before is returned 'null' for any of these queries {modhash: "", children: Array[26], after: "t3_1q9s6e", before:…
Rana Deep
  • 617
  • 7
  • 19