What problem does it solve?
This Skill extracts the main content from web articles and blog posts, removing navigation, ads, newsletter signups, and other clutter to produce clean, readable text for offline use.
Core Features & Use Cases
- Automated extraction: Retrieve article text from URLs and strip away clutter.
- Title-aware saving: Save content to a text file named after the article title with a sanitized filename.
- Use Case: Save research articles or blog posts for offline reading, summarization, or archiving.
Quick Start
To extract an article:
- If reader is installed: reader "https://example.com/article" > article.txt
TITLE=$(head -n 1 article.txt | sed 's/^# //')
FILENAME="$TITLE.txt"
mv article.txt "$FILENAME"
- If trafilatura is installed: trafilatura --URL "https://example.com/article" --output-format txt > article.txt
TITLE=$(trafilatura --URL "https://example.com/article" --json | python3 -c "import json, sys; print(json.load(sys.stdin).get('title','Article'))")
FILENAME="$TITLE.txt"
mv article.txt "$FILENAME"
- Fallback (curl-based): curl -s "https://example.com/article" | python3 -c "import sys, html.parser; print('Article extraction via simple parser placeholder')" > article.txt
Then rename as above