reddit-media-harvester
v1.0.0
Published
Scrape and archive media assets and associated metadata from Subreddits without developer API keys.
Maintainers
Readme
reddit-media-harvester
Scrape and catalog media assets (images, videos, links) and associated metadata directly from public Subreddits without developer API keys.
Features
- Parses public JSON endpoints for target subreddits.
- Resolves image paths (i.redd.it, imgur) and video URLs (v.redd.it).
- Bypasses standard client authentications.
Installation
npm install reddit-media-harvesterUsage
import { getRedditMedia } from 'reddit-media-harvester';
// Harvest media links from r/aww
const media = await getRedditMedia('aww');
console.log('Found media links:', media);
// Output: ['https://i.redd.it/...jpg', ...]API Reference
getRedditMedia(subreddit)
Pulls hot listings for a subreddit and filters for media content.
Parameters:
subreddit:string
Returns: Promise<string[]> of media URLs.
License
MIT
