Skip to content
Back to skills

Sn Search Social En

ASecurity

用于搜索英文社交平台,包括 Reddit 帖子、Twitter/X 推文和 YouTube 视频。

  • 5,601 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentspythonbashapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 6 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add OpenSenseNova/SenseNova-Skills --skill sn-search-social-en --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sn Search Social En?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sn Search Social En
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/opensensenova-sn-search-social-en/badge)](https://www.skillsdirectory.com/skills/opensensenova-sn-search-social-en)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sn-search-social-en
description: 用于搜索英文社交平台,包括 Reddit 帖子、Twitter/X 推文和 YouTube 视频。
---

# sn-search-social-en - 英文社交平台搜索

## 凭证配置

API key、token 与 cookie 统一建议写在仓库根目录 `.env`(参考 `.env.example`),并由 runtime 或用户在执行前加载为同名环境变量。脚本仍只从环境变量或显式 CLI 参数读取凭证;不要把真实密钥写入 skill payload、报告、日志或提交。

搜索 Reddit、Twitter/X、YouTube 三个英文社交平台。

## 可用脚本

| 脚本 | 平台 | 用途 | API 密钥 |
|------|------|------|---------|
| `reddit_search.py` | Reddit | 帖子和讨论搜索 | 无需 |
| `twitter_search.py` | Twitter/X | 推文搜索 | 需 `TIKHUB_TOKEN` |
| `youtube_search.py` | YouTube | 视频搜索 | 需 `YOUTUBE_API_KEY` |

## 依赖

首次运行或脚本提示缺库时,使用本技能的依赖清单安装到当前 Python 环境:

```bash
python3 -m pip install -r requirements.txt
```

不要在脚本内部自动安装依赖。若安装失败、网络不可用或包不可用,停止使用对应脚本并改用网页搜索,说明缺少依赖。

## 参数说明

### reddit_search.py

```bash
python3 scripts/reddit_search.py <query> [选项]
```

| 参数 | 说明 | 默认值 |
|------|------|--------|
| `query` | 搜索关键词(必填) | — |
| `--limit`, `-n` | 返回结果数量 | 10 |
| `--subreddit`, `-r` | 限定子版块(如 `python`, `machinelearning`) | — |
| `--sort` | 排序方式:`relevance`, `hot`, `top`, `new`, `comments` | relevance |
| `--time`, `-t` | 时间范围:`hour`, `day`, `week`, `month`, `year`, `all` | all |

```bash
python3 scripts/reddit_search.py "machine learning projects" --limit 5
python3 scripts/reddit_search.py "async python" --subreddit python --sort top --time month --limit 5
```

### twitter_search.py

```bash
python3 scripts/twitter_search.py <query> [选项]
```

| 参数 | 说明 | 默认值 |
|------|------|--------|
| `query` | 搜索关键词(必填) | — |
| `--limit`, `-n` | 返回结果数量 | 10 |
| `--token` | TikHub Token(也可通过 `TIKHUB_TOKEN` 环境变量设置,必填) | — |

```bash
python3 scripts/twitter_search.py "AI agents" --limit 10
python3 scripts/twitter_search.py "LLM" --token your_tikhub_token --limit 5
```

### youtube_search.py

```bash
python3 scripts/youtube_search.py <query> [选项]
```

| 参数 | 说明 | 默认值 |
|------|------|--------|
| `query` | 搜索关键词(必填) | — |
| `--limit`, `-n` | 返回结果数量 | 10 |
| `--api-key` | YouTube API 密钥(也可通过 `YOUTUBE_API_KEY` 环境变量设置,必填) | — |
| `--order` | 排序方式:`relevance`, `date`, `viewCount`, `rating` | relevance |

```bash
python3 scripts/youtube_search.py "transformer explained" --limit 5
python3 scripts/youtube_search.py "python tutorial" --order viewCount --limit 10
```

## 输出格式

标准 JSON:`{"success": true, "query": "...", "provider": "reddit|twitter|youtube", "items": [...], "error": null}`

Files in this skill

  • SKILL.md3 KB
  • requirements.txt12 B
  • scripts/reddit_search.py2.8 KB
  • scripts/search_utils.py4.3 KB
  • scripts/twitter_search.py2.5 KB
  • scripts/youtube_search.py2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.