Skill Reddit
Ottieni post, commenti, informazioni sui subreddit e profili utente da Reddit tramite l'API JSON pubblica.
Prerequisiti
Nessuna chiave API richiesta! L'API JSON pubblica di Reddit funziona senza autenticazione.
Verifica rapida:
cd <skill_directory>
python3 scripts/get_posts.py python --limit 3
Comandi
Tutti i comandi vengono eseguiti dalla directory della skill.
Post del 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
Cerca post
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
Informazioni sul subreddit
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
Post e commenti
python3 scripts/get_post.py abc123 # Get post by ID
python3 scripts/get_post.py abc123 --comments 50 # With more comments
Profilo utente
python3 scripts/get_user.py spez
python3 scripts/get_user.py spez --posts 10 # Include recent posts
Opzioni di ordinamento
| Criterio | Descrizione | Opzioni di tempo |
|---|---|---|
hot | Post di tendenza (predefinito) | - |
new | Ultimi post | - |
top | Più votati | ora, giorno, settimana, mese, anno, tutto |
rising | In crescita | - |
controversial | Voti misti | ora, giorno, settimana, mese, anno, tutto |
Informazioni API
- Metodo: API JSON pubblica (nessuna autenticazione richiesta)
- Trucco: Aggiungi
.jsona qualsiasi URL di Reddit - Limite di velocità: 100 richieste/minuto
- Documentazione: https://www.reddit.com/dev/api


