ae: download first

This commit is contained in:
Sridhar Ratnakumar 2025-11-10 13:58:41 -05:00
parent fa94fe504f
commit 4897572347

View file

@ -20,8 +20,11 @@ User wants to:
## Workflow
```bash
# Download HTML
curl -L "$URL" > temp.html
# Extract article
reader "$URL" > temp.txt
reader temp.html > temp.txt
# Get title from first line
TITLE=$(head -n 1 temp.txt | sed 's/^# //')
@ -32,6 +35,9 @@ FILENAME=$(echo "$TITLE" | tr '/:?"<>|' '-' | cut -c 1-80 | sed 's/ *$//')".txt"
# Save
mv temp.txt "$FILENAME"
# Clean up
rm temp.html
# Show preview
echo "✓ Saved: $FILENAME"
head -n 10 "$FILENAME"