惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
月光博客
月光博客
Jina AI
Jina AI
F
Fortinet All Blogs
博客园 - 聂微东
The Cloudflare Blog
美团技术团队
B
Blog RSS Feed
N
Netflix TechBlog - Medium
罗磊的独立博客
The GitHub Blog
The GitHub Blog
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
阮一峰的网络日志
阮一峰的网络日志
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Built a CLI That Extracts Content From URLs and Turns I...
Omar Fuentes · 2026-04-25 · via DEV Community

Omar Fuentes

If I wanted to analyze several articles on the same topic, the process was always the same:

  • open multiple tabs
  • read each article
  • copy headings
  • copy paragraphs
  • organize everything manually

It was slow and repetitive.

So I decided to automate it.

That’s how content-scraper-cli was created.

The Idea

Instead of manually collecting information from multiple articles, I wanted a tool that could:

  1. Take a list of URLs
  2. Extract the important parts of each page
  3. Organize everything in a structured format

The result is a JSON file that can be used as research input for AI tools or content analysis.

Installing the CLI

You can install the tool globally with npm:

npm install -g content-scraper-cli

Enter fullscreen mode Exit fullscreen mode

Then run it from your terminal:

content-scraper

Enter fullscreen mode Exit fullscreen mode

The CLI will ask for:

  • the URLs you want to analyze
  • the name of the JSON output file

Example:

📎 Enter URLs separated by comma:
https://blog.com/article-1, https://site.com/post-2

💾 Output JSON file name:
research-data

Enter fullscreen mode Exit fullscreen mode

After processing the pages, the tool generates a JSON file with structured information from each article.

What the Tool Extracts

For every URL, the CLI extracts:

Metadata

  • title
  • meta description
  • author (if available)
  • publication date
  • site language
  • meta keywords

Content Structure

  • H1 headings
  • H2 headings
  • H3 headings

Content

  • paragraphs with meaningful length
  • lists (ul / ol)

Statistics

  • total paragraphs
  • total word count

This makes it easy to analyze how different articles are structured.

Example Output

The output file contains structured data like this:

{
  "generado_en": "...",
  "total_fuentes": 3,
  "fuentes": [
    {
      "url": "...",
      "titulo": "...",
      "estructura": {
        "h1": [],
        "h2": [],
        "h3": []
      },
      "parrafos": [],
      "listas": []
    }
  ]
}

Enter fullscreen mode Exit fullscreen mode

This dataset can then be used for:

  • content research
  • SEO analysis
  • AI article generation workflows
  • studying how top articles structure their content

Why I Built It

The goal was simple:

Make content research faster.

Instead of manually reading and copying data from multiple pages, the CLI collects the structure of several articles in seconds.

Notes

The tool works best with:

  • blogs
  • news websites
  • long-form articles

Some sites with strong anti-bot protection may block requests.

The CLI intentionally does not extract images and does not rely on paid APIs.

Everything runs locally.

Open Source

The project is open source and available on npm.

If you want to try it:

npm install -g content-scraper-cli

Enter fullscreen mode Exit fullscreen mode

Created Web Developer and Programmer omar fuentes