Toolverse
All skills

reddit-api

by alinaqi

Reddit API with PRAW (Python) and Snoowrap (Node.js)

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
alinaqi
Category
Backend
Views
30

About this skill

Reddit API with PRAW (Python) and Snoowrap (Node.js)

How to use

  1. Przejdź na https://www.reddit.com/prefs/apps i utwórz nową aplikację Reddit. Wybierz typ aplikacji (script dla botów, web app dla serwerów, installed app dla mobilnych) i ustaw redirect URI na http://localhost:8000/callback dla środowiska deweloperskiego. Zanotuj client_id i client_secret.

  2. Utwórz plik .env w projekcie i dodaj zmienne środowiskowe: REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_USER_AGENT (format: platforma:app_id:wersja by /u/nazwa), oraz REDDIT_USERNAME i REDDIT_PASSWORD (tylko dla aplikacji skryptowych).

  3. Zainstaluj bibliotekę PRAW poleceniem pip install praw lub uv add praw dla Pythona.

  4. Zaimportuj PRAW w kodzie i utwórz instancję Reddit, przekazując zmienne środowiskowe jako parametry uwierzytelniające.

  5. Używaj metod PRAW do pobierania danych – np. subreddit().new() dla nowych postów, submission().comments dla komentarzy, redditor() dla profili użytkowników.

  6. Monitoruj nagłówki odpowiedzi X-Ratelimit-* aby nie przekroczyć limitu 100 zapytań na minutę dla uwierzytelnionego klienta.

Related skills

openspec

by ruan-cat

OpenSpec 中文版规范助手 - 规范驱动的 AI 编程开发,帮助初始化、创建提案、编写规格、校验格式并归档变更。触发条件: 当用户提及 openspec、规范文档、需求管理、变更提案、spec-driven development 等关键词时主动调用。

Backend
27122

humanizer

by davila7

Remove signs of AI-generated writing from text. Use when editing or reviewing\ntext to make it sound more natural and human-written. Based on Wikipedia's\ncomprehensive \

Backend
2873

scientific-writing

by K-Dense-AI

Write scientific manuscripts. IMRAD structure, citations (APA/AMA/Vancouver), figures/tables, reporting guidelines (CONSORT/STROBE/PRISMA), abstracts, for research papers and journal submissions.

Backend
47191

api-design-principles

by wshobson

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Backend
50146

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

using-superpowers

by obra

Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists

Backend
65167