Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
polygot
on Oct 13, 2019
|
parent
|
context
|
favorite
| on:
LinkedIn loses appeal over access to user profiles
If you add .json to the end of a Reddit URL, it will return JSON data. For example:
https://www.reddit.com/r/ubuntu.json
. It also works with comment threads and posts.
avip
on Oct 13, 2019
|
next
[–]
Wonderful feature also used by Trello
https://trello.com/b/rq2mYJNn/public-trello-boards.json
ludamad
on Oct 13, 2019
|
prev
|
next
[–]
Now that is an ergonomic API.
polygot
on Oct 13, 2019
|
prev
|
next
[–]
Also, it outputs XML and RSS too:
https://www.reddit.com/r/ubuntu.rss
and
https://www.reddit.com/r/ubuntu.xml
ahbyb
on Oct 13, 2019
|
parent
|
next
[–]
xml and rss seem to be the same exact output
sneak
on Oct 14, 2019
|
prev
|
next
[–]
I have adopted this in other projects and added the functionality there as well; it is a brilliant idea.
diminoten
on Oct 13, 2019
|
prev
|
next
[–]
Yeah no need to scrape Reddit, their content is accessible via their API.
Raidion
on Oct 13, 2019
|
prev
[–]
PRAW is also a great python reddit "scraper" that allows you to pull data via their API very easily.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: