← 返回
数据分析

PicSee URL Shortener & QR Codes (Web)

Quickly shorten URLs and generate QR codes via PicSee (picsee.io). After logging in, you can also view analytics and history. Use when user says "縮網址", "短網址"...
Quickly shorten URLs and generate QR codes via PicSee (picsee.io). After logging in, you can also view analytics and history. Use when user says "縮網址", "短網址"...
picseeinc
数据分析 clawhub v1.0.0 1 版本 99804.1 Key: 无需
★ 0
Stars
📥 1,019
下载
💾 8
安装
1
版本
#latest

概述

PicSee URL Shortener

Quickly shorten long URLs and generate QR codes via PicSee (picsee.io). After logging in, you can also access analytics and history records.

Important Rules

  • Always use profile: "openclaw"
  • Each snapshot generates new refs - don't reuse old refs
  • If any step fails, restart from Step 1
  • When reading files, only use file_path parameter - don't pass path: "" (empty string causes EISDIR errors)
  • QR code is opt-in - Don't generate QR code unless user explicitly asks for it (saves tokens)
  • Use virtual environment for QR generation - Ensures qrcode package is always available without polluting system Python

Workflow

Core technique: URL-encode the link and append it to the query string, PicSee will auto-shorten it. Only generate QR code if user requests it (to save tokens).

Step 1: Open PicSee with URL

URL-encode the long URL, then append it to https://picsee.io/?url=.

Use browser tool:

action: "open"
profile: "openclaw"
targetUrl: "https://picsee.io/?url=(URL-encoded long URL)"

URL encoding example:

  • Original: https://example.com/path?a=1&b=2
  • Encoded: https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2
  • Full: https://picsee.io/?url=https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2

Save the returned targetId - you'll need it for following steps.

Step 2: Wait for shortening to complete

Use browser tool to wait 3 seconds:

action: "act"
profile: "openclaw"
targetId: "(targetId from Step 1)"
request:
  kind: "wait"
  timeMs: 3000

Step 3: Extract shortened URL

Take a snapshot and extract the shortened URL from the page content:

action: "snapshot"
profile: "openclaw"
targetId: "(targetId from Step 1)"
refs: "aria"

Read the snapshot text and identify the shortened URL. PicSee displays the result prominently on the page after shortening completes. Look for:

  • A clickable link that looks like a short URL
  • Text that says "shortened URL" or similar followed by a link
  • Any URL that's clearly shorter than the original input

If you can't find the short URL in the snapshot, wait another 3 seconds and retry. If still not found after 2 retries, use the fallback method (see below).

Step 4: Reply with short URL and ask about QR code

Reply with the shortened URL only. Do NOT generate QR code by default.

Reply in the same language as the user's original request. Example format in English:

Short URL: https://pse.is/xxxxx

Need QR code?

The language model will automatically translate this to the user's language if needed.

Wait for user response. If user confirms they want QR code, proceed to Step 5.

Step 5 (Optional): Generate QR code with virtual environment

Only run this step if user explicitly requests QR code.

Use Python virtual environment to ensure qrcode package is available:

# Check if venv exists, create if not
if [ ! -d ~/openclaw_python_venv ]; then
  python3 -m venv ~/openclaw_python_venv
  source ~/openclaw_python_venv/bin/activate
  pip install qrcode pillow
else
  source ~/openclaw_python_venv/bin/activate
fi

# Generate QR code
python3 - <<'PY'
import qrcode
qr = qrcode.QRCode()
qr.add_data("THE_SHORT_URL_HERE")
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("/tmp/picsee_qr.png")
print("QR code saved")
PY

After generation, send the QR code image file using message tool with filePath: "/tmp/picsee_qr.png".

Fallback Method (when quick method fails)

If Step 1's URL parameter method doesn't auto-shorten (page stays on homepage), use manual operation:

  1. snapshot to get page element refs (refs: "aria")
  2. Find the input box (textbox named "網址貼這裡") and button (img "PicSee!")
  3. act type to enter the URL in the input box
  4. act click to click the shorten button
  5. Return to Steps 2-4 to extract results

Common Error Handling

  • EISDIR error: When reading files, don't pass path: "", only use file_path parameter
  • Unknown ref: Ref has expired, re-run snapshot to get new refs
  • tab not found: Page was closed, restart from Step 1
  • Short URL not visible in snapshot: Increase wait time to 5000ms and retry
  • Still can't find short URL: Switch to fallback method
  • venv creation fails: Check Python version with python3 --version (need 3.3+)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 07:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 164 📥 59,913
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,047
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,940