Umiejętność Reddit
Pobieraj posty, komentarze, informacje o subredditach i profile użytkowników z Reddita za pomocą publicznego API JSON.
Wymagania wstępne
Nie jest wymagany klucz API! Publiczne API JSON Reddita działa bez uwierzytelniania.
Szybkie sprawdzenie:
cd <skill_directory>
python3 scripts/get_posts.py python --limit 3
Polecenia
Wszystkie polecenia są uruchamiane z katalogu umiejętności.
Posty z subreddita
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
Wyszukiwanie postów
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
Informacje o subreddicie
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
Posty i komentarze
python3 scripts/get_post.py abc123 # Get post by ID
python3 scripts/get_post.py abc123 --comments 50 # With more comments
Profil użytkownika
python3 scripts/get_user.py spez
python3 scripts/get_user.py spez --posts 10 # Include recent posts
Opcje sortowania
| Sort | Description | Time Options |
|---|---|---|
hot | Popularne posty (domyślnie) | - |
new | Najnowsze posty | - |
top | Najwyżej oceniane | godzina, dzień, tydzień, miesiąc, rok, wszystkie |
rising | Zyskujące popularność | - |
controversial | Mieszane głosy | godzina, dzień, tydzień, miesiąc, rok, wszystkie |
Informacje o API
- Metoda: Publiczne API JSON (nie wymaga uwierzytelniania)
- Sztuczka: Dodaj
.jsondo dowolnego adresu URL Reddita - Limit zapytań: 100 zapytań na minutę
- Dokumentacja: https://www.reddit.com/dev/api


