X Article Reader
Read X (Twitter) Articles aloud using macOS say command. Automatically detects language and selects the right voice.
What This Skill Does
- - Opens the X article URL in a local headless browser (patchright/Chromium — runs 100% locally)
- Extracts the article title and body text
- Reads it aloud via macOS built-in
say command (no external TTS API)
What Gets Installed
| Component | Size | Where |
|---|
| INLINECODE2 (Python pkg) | ~5MB | your Python env |
| Chromium browser |
~170MB |
~/.cache/ms-playwright/ |
All processing is local. No data is sent to any third-party service.
Prerequisites
CODEBLOCK0
First-Time Setup (One-Time Login)
The skill stores its own browser profile at:
CODEBLOCK1
This is completely isolated — it does not read or write credentials from any other skill or app.
CODEBLOCK2
A browser window opens → log in to X → session saved automatically (~7 days).
Usage
CODEBLOCK3
Options
CODEBLOCK4
Voices
| Language (auto-detected) | Voice |
|---|
| 中文 (>15% Chinese chars) | Tingting |
| English |
Samantha |
Source Code
https://github.com/ewangchong/x-article-reader
Trigger Examples
- - "帮我读一下这篇X文章:https://x.com/xxx/articles/yyy"
- "Read this X article aloud: https://x.com/xxx/articles/yyy"
- "朗读 https://x.com/xxx/articles/yyy"
X 文章朗读器
使用 macOS 的 say 命令朗读 X(Twitter)文章。自动检测语言并选择合适的声音。
技能功能
- - 在本地无头浏览器(patchright/Chromium — 完全本地运行)中打开 X 文章链接
- 提取文章标题和正文内容
- 通过 macOS 内置的 say 命令朗读(无需外部 TTS API)
安装内容
| 组件 | 大小 | 位置 |
|---|
| patchright(Python 包) | 约5MB | Python 环境 |
| Chromium 浏览器 |
约170MB | ~/.cache/ms-playwright/ |
所有处理均在本地完成。不会向任何第三方服务发送数据。
前置条件
bash
仅限 macOS(使用内置 say 命令)
pip install patchright
python3 -m patchright install chromium
首次设置(一次性登录)
该技能在以下位置存储自己的浏览器配置文件:
dir>/data/browserstate/
这是完全隔离的——不会读取或写入任何其他技能或应用的凭据。
bash
cd /scripts
python3 auth_setup.py
浏览器窗口打开 → 登录 X → 会话自动保存(约7天)。
使用方法
bash
cd /scripts
python3 read_article.py https://x.com/user/articles/123
选项
bash
强制使用特定声音
python3 read_article.py
--voice Tingting
保存音频文件而非播放
python3 read_article.py --output ~/Desktop/article.aiff
显示浏览器(调试模式)
python3 read_article.py --show-browser
声音
| 语言(自动检测) | 声音 |
|---|
| 中文(中文字符占比>15%) | Tingting |
| 英语 |
Samantha |
源代码
https://github.com/ewangchong/x-article-reader
触发示例
- - 帮我读一下这篇X文章:https://x.com/xxx/articles/yyy
- Read this X article aloud: https://x.com/xxx/articles/yyy
- 朗读 https://x.com/xxx/articles/yyy