Compétence Reddit
Obtenez des publications, des commentaires, des informations de subreddit et des profils d'utilisateurs depuis Reddit via l'API JSON publique.
Prérequis
Aucune clé API requise ! L'API JSON publique de Reddit fonctionne sans authentification.
Vérification rapide :
cd <skill_directory>
python3 scripts/get_posts.py python --limit 3
Commandes
Toutes les commandes s'exécutent depuis le répertoire de la compétence.
Publications de subreddit
python3 scripts/get_posts.py python --limit 20 # Hot posts (default)
python3 scripts/get_posts.py python --sort new --limit 20
python3 scripts/get_posts.py python --sort top --time week
python3 scripts/get_posts.py python --sort top --time all --limit 10
Rechercher des publications
python3 scripts/search_posts.py "AI agent" --limit 20
python3 scripts/search_posts.py "MCP server" --subreddit ClaudeAI --limit 10
python3 scripts/search_posts.py "async python" --sort top --time year
Informations sur le subreddit
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
Publication et commentaires
python3 scripts/get_post.py abc123 # Get post by ID
python3 scripts/get_post.py abc123 --comments 50 # With more comments
Profil utilisateur
python3 scripts/get_user.py spez
python3 scripts/get_user.py spez --posts 10 # Include recent posts
Options de tri
| Tri | Description | Options temporelles |
|---|---|---|
hot | Publications tendances (par défaut) | - |
new | Dernières publications | - |
top | Les plus votées | heure, jour, semaine, mois, année, tout |
rising | Gagnant en popularité | - |
controversial | Votes mitigés | heure, jour, semaine, mois, année, tout |
Informations sur l'API
- Méthode : API JSON publique (aucune authentification requise)
- Astuce : Ajoutez
.jsonà n'importe quelle URL Reddit - Limite de débit : 100 requêtes/minute
- Documentation : https://www.reddit.com/dev/api


