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
-2
votes
1 answer

How to read top 10 headlines from the front page of Reddit using it's API?

I am new to Python and I want to use Reddit API to retrieve top 10 headline on the front page of Reddit using Python. I tried to read the API documentation but I am not able to understand how to proceed. It would be great if someone can give me an…
user3745870
  • 321
  • 1
  • 5
  • 13
-2
votes
1 answer

Use Reddit API to access front page data on IOS

How do you use the reddit API to get the title/upvotes/op of a post using IOS? Is it even possible or do I have to parse the HTML? I have already parsed the front page but the posts I get don't match the desktop version at all. I feel there must be…
Tanner Quigley
  • 246
  • 4
  • 12
-2
votes
1 answer

reddit Picture of the posted link disappears

When I submit a link on Reddit, the picture of it (the one at the left) disappears after a while and the picture changes to the reddit logo with a camera and a question mark. Anyone have any clue how to fix this up? you can find the examples…
Farshad Momtaz
  • 424
  • 1
  • 8
  • 22
-3
votes
0 answers

How to get all posts by topics from Reddit by search using Web Scraping?

I tried to use Selenium and Beautiful Soup to scrape all posts mentioning certain topics. Although I scrolled down to the bottom of the search page, I only got a portion of the results because only about 250 posts were returned. Does anyone know…
-3
votes
1 answer

How to fix 'Error 503 cdn error' while fetching from reddit api?

for learning purposes I'm building a command line tool using golang, this cli fetches the top ten posts from GameDeals subreddit using the following api: https://www.reddit.com/r/gamedeals/hot.json?limit=10 When I send the request I got as response…
-3
votes
1 answer

PHP and JSON for Reddit

want to grab from a specific Reddit user some data. There's a dynamic JSON file on the Reddit servers which can be accessed remotely. The JSON file path is: http://www.reddit.com/user/tiagoperes/about.json (where you can replace “tiagoperes” in the…
Tiago Martins Peres
  • 14,289
  • 18
  • 86
  • 145
-3
votes
1 answer

Grab data from than 100 reddit posts php

I have been trying get data out of new reddit post, but theres limitation where you cant get data from more than 100 posts. can anybody help me to getover this below is my code $output = ""; for($digit=0; $digit<1000; $digit+=25){ …
Prog_Rookie
  • 438
  • 7
  • 23
-3
votes
1 answer

JSON parse throws JSON exception in android

I am trying to parse a JSON document in Android and I have previously been able to do so using the same logic. But in this section of the website my code seems to break and I've been spending hours trying to compare what changed but I cant tell.…
feilong
  • 1,564
  • 3
  • 16
  • 22
-4
votes
1 answer

Getting a list of strings after a start string

I'm building a Reddit bot that Replies with a link to the app that the redditor specified What I want to achieve is that the user comments with this text ilink: someapp, anotherapp I have no problem getting the information and replying to the…
-4
votes
1 answer

Request all reddit comments from user with Javascript

I am trying to achieve the following with Javascript: Given a reddit username , I want to retrieve the maximum amount of comments allowed for this user. So far what i have managed to do is retrieve only the 25 latest comments which is the default…
S tz
  • 27
  • 4
-4
votes
1 answer

Extracting a parameter from a single object

I am Using JavaScript(not JQuery), what is the best method for extracting the parameter Name from the following object? Object {kind: "t3", data:…
Daniel Izhar
  • 130
  • 1
  • 12
-4
votes
1 answer

Couldn't find controller without an ID

I'm trying to build Reddit on Rails by Schneems. And I keep getting this error at the point of submitting a new link. ruby 1.9.3 Rails 4.2.0 What's wrong with my Links#Controller ? class LinksController < ApplicationController def show @link =…
-4
votes
1 answer

After the Reddit update (>2 months ago) my bot will no longer run

Here is the error returned: /usr/lib/python3.2/platform.py:381: ResourceWarning: unclosed file <_io.TextIOWrapper name='/etc/lsb-release' mode='rU' encoding='UTF-8'> full_distribution_name=0) Version 2.1.15 of praw is outdated. Version 2.1.18…
theCowardlyFrench
  • 228
  • 1
  • 3
  • 11
-4
votes
1 answer

python with tor and reddit "KeyError"

I found this code on github: https://github.com/Abrand88/Reddit-Tor-proxy-voting-bot/blob/master/reddit_proxy_voting_bot.py I know that its a bot and potentially malicious but I thinks its cool nonetheless. From an educational perspective how do I…
-5
votes
2 answers

Go requires comma, when put there, other unrelated errors are thrown

I'm trying to create a reddit bot in Golang using this library, and Golang is asking for a comma, however, when I put it there, Go throws other errors. Here's my main.go: package main import ( "github.com/turnage/graw/reddit" ) func main() { …
1 2 3
84
85