![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
simple-reddit-api
Advanced tools
Simple client for the reddit public api. (No auth needed)
npm i simple-reddit --save
const Reddit = require("simple-reddit");
or just import individual functions.
const {topPost} = require("simple-reddit");
RedditSimple.topPost(options).then(res => {
console.log(res);
})
RedditSimple.newPost(options).then(res => {
console.log(res);
})
RedditSimple.randomPost(options).then(res => {
console.log(res);
})
RedditSimple.searchSubreddits('dankmemes').then(res => {
console.log(res);
})
RedditSimple.popularSubreddits(count).then(res => {
console.log(res);
})
Name | Value | Description | Default |
---|---|---|---|
subreddit | name of subreddit | Subreddit to fetch the post. | r/all |
count | Number of posts to retrieve | Retrieves n number of posts. | 1 (max:100) |
is_meme | true/false | If you want to get a meme. Ignores subreddit option if true. | false |
fulldata | true/false | Retrieve essential post data or everything reddit has to offer. | false |
{
status:200/404, //404 if any error occurs
posts:[ //empty incase of error/no subreddit
{
data: {
title: string,
author: string,
subreddit_name_prefixed: string,
ups: number,
total_awards_received: number,
url: string,
}
} //Incase of fulldata:true, posts array has the raw post object returned by reddit
]
}
{
status: 200/404, //404 if any error occurs
subreddit: subreddit,
url: `${api}${subreddit}`
}
{
status:200/400, //404 if any error occurs
subreddits:[ //array empty in case of error
{
data: {
display_name_prefixed: string,
subscribers: string,
description: string,
url: string
}
}
]
}
FAQs
A simple reddit api that doesnt require auth.
We found that simple-reddit-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.