reddit-fetch
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseReddit Fetch via Gemini CLI
通过Gemini CLI获取Reddit内容
When WebFetch fails to access Reddit (blocked, 403, etc.), use Gemini CLI via tmux.
Pick a unique session name (e.g., ) and use it consistently throughout.
gemini_abc123当WebFetch无法访问Reddit(被拦截、返回403等)时,通过tmux使用Gemini CLI。
选择一个唯一的会话名称(例如),并在整个过程中保持一致使用。
gemini_abc123Setup
设置
bash
tmux new-session -d -s <session_name> -x 200 -y 50
tmux send-keys -t <session_name> 'gemini -m gemini-3-pro-preview' Enter
sleep 3 # wait for Gemini CLI to loadbash
tmux new-session -d -s <session_name> -x 200 -y 50
tmux send-keys -t <session_name> 'gemini -m gemini-3-pro-preview' Enter
sleep 3 # 等待Gemini CLI加载完成Send query and capture output
发送查询并捕获输出
bash
tmux send-keys -t <session_name> 'Your Reddit query here' Enter
sleep 30 # wait for response (adjust as needed, up to 90s for complex searches)
tmux capture-pane -t <session_name> -p -S -500 # capture outputbash
tmux send-keys -t <session_name> 'Your Reddit query here' Enter
sleep 30 # 等待响应(根据需要调整,复杂搜索最多等待90秒)
tmux capture-pane -t <session_name> -p -S -500 # 捕获输出How to tell if Enter was sent
如何判断Enter是否已发送
Look for YOUR QUERY TEXT specifically. Is it inside or outside the bordered box?
Enter NOT sent - your query is INSIDE the box:
╭─────────────────────────────────────╮
│ > Your actual query text here │
╰─────────────────────────────────────╯Enter WAS sent - your query is OUTSIDE the box, followed by activity:
> Your actual query text here
⠋ Our hamsters are working... (processing)
╭────────────────────────────────────────────╮
│ > Type your message or @path/to/file │
╰────────────────────────────────────────────╯Note: The empty prompt always appears in the box - that's normal. What matters is whether YOUR query text is inside or outside the box.
Type your message or @path/to/fileIf your query is inside the box, run to submit.
tmux send-keys -t <session_name> Enter专门查看你的查询文本。它是在带边框的框内还是框外?
未发送Enter - 你的查询在框内:
╭─────────────────────────────────────╮
│ > Your actual query text here │
╰─────────────────────────────────────╯已发送Enter - 你的查询在框外,后面是处理中的内容:
> Your actual query text here
⠋ Our hamsters are working... (processing)
╭────────────────────────────────────────────╮
│ > Type your message or @path/to/file │
╰────────────────────────────────────────────╯注意:空提示“Type your message or @path/to/file”总会出现在框内——这是正常的。关键是看你的查询文本是在框内还是框外。
如果你的查询在框内,运行来提交。
tmux send-keys -t <session_name> EnterCleanup when done
使用完成后清理
bash
tmux kill-session -t <session_name>bash
tmux kill-session -t <session_name>