punixcorn / fetchRedditPosts

fetch reddit posts

Home Page:https://github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fetch Reddit Posts

Run

  • first :npm install
  • each time : npm run dev

output data in fetchs.json

USE

subreddit

Edit subredditname in src/app.ts : main()

categlory

Edit categlory in src/app.ts : main()

Data

data fetched

interface responseObj {
    selftext: string;
    author_fullname: string;
    title: string;
    ups: number;
    over_18: boolean;
    permalink: string;
    url: string;
}

About

fetch reddit posts

https://github.com


Languages

Language:TypeScript 100.0%