unifuncs-reader
UniFuncs Reader Skill
Read web pages url and documents (PDF, Word, Excel, and PPTX) url with AI-powered extraction.
First-Time Setup
- Go to https://unifuncs.com/account to get your API key.
- Set the environment variable:
export UNIFUNCS_API_KEY="sk-your-api-key"
When to Use
You have a web page or document URL and need to extract readable content from it.
Usage
python3 read.py "https://example.com"
Options
usage: read.py [-h] [--format {markdown,md,text,txt}] [--no-images]
[--only-css-selectors ONLY_CSS_SELECTORS [ONLY_CSS_SELECTORS ...]]
[--wait-for-css-selectors WAIT_FOR_CSS_SELECTORS [WAIT_FOR_CSS_SELECTORS ...]]
[--exclude-css-selectors EXCLUDE_CSS_SELECTORS [EXCLUDE_CSS_SELECTORS ...]]
[--link-summary] [--ignore-cache]
[--set-cookie SET_COOKIE] [--max-words MAX_WORDS]
[--read-timeout READ_TIMEOUT] [--topic TOPIC]
[--preserve-source] [--extract-timeout EXTRACT_TIMEOUT]
url
UniFuncs Web Reader API client
positional arguments:
url Target URL to read.
options:
-h, --help show this help message and exit
--format {markdown,md,text,txt}
Output format (default: md).
--no-images Exclude images from output.
--only-css-selectors ONLY_CSS_SELECTORS [ONLY_CSS_SELECTORS ...]
Only include elements matching CSS selectors
(e.g. ".article_content").
--wait-for-css-selectors WAIT_FOR_CSS_SELECTORS [WAIT_FOR_CSS_SELECTORS ...]
Wait until these CSS selectors appear before
parsing (e.g. "#main" ".content").
--exclude-css-selectors EXCLUDE_CSS_SELECTORS [EXCLUDE_CSS_SELECTORS ...]
Exclude elements matching CSS selectors (e.g.
"#footer" ".copyright").
--link-summary Append all page links to the end of content.
--ignore-cache Ignore cache and fetch fresh content.
--set-cookie SET_COOKIE
Set Cookie header value for pages requiring
authentication.
--max-words MAX_WORDS
Maximum character count to read, range 0-1000000
(default: 1000000).
--read-timeout READ_TIMEOUT
Read timeout in milliseconds (default: 180000).
--topic TOPIC Extract topic-focused content using an LLM.
--preserve-source Attach source references to each extracted
paragraph.
--extract-timeout EXTRACT_TIMEOUT
Topic extraction timeout in milliseconds
(default: 180000).
Examples:
read.py "https://mp.weixin.qq.com/s/wmoNh44A4ofkawPNVx_g6A" --format md
More from unifuncs/unifuncs-skill
unifuncs-deep-search
Use UniFuncs Deep Search API for fast, comprehensive information gathering. Use this skill when users ask for deep search, broad investigation, or in-depth topic coverage.
14unifuncs-search
Use unifuncs-search for real-time web search. Use this skill when users want to search the web, find articles, look up information, get the latest news, discover resources, or ask to "search", "find", "look up", check "latest updates", "find related articles", or otherwise retrieve up-to-date information from the internet.
9unifuncs-deep-research
Use UniFuncs Deep Research API to run in-depth research and generate long-form reports (10,000 words or more). Use this skill when users request deep research, research reports, or comprehensive analysis.
1