<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Omar Fuentes</title>
    <description>The latest articles on DEV Community by Omar Fuentes (@omar_fuentes).</description>
    <link>https://dev.to/omar_fuentes</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3896368%2Fa7486b07-dad7-435a-9973-2fc417d3607a.jpg</url>
      <title>DEV Community: Omar Fuentes</title>
      <link>https://dev.to/omar_fuentes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omar_fuentes"/>
    <language>en</language>
    <item>
      <title>I Built a CLI That Extracts Content From URLs and Turns It Into JSON for AI</title>
      <dc:creator>Omar Fuentes</dc:creator>
      <pubDate>Fri, 24 Apr 2026 17:04:38 +0000</pubDate>
      <link>https://dev.to/omar_fuentes/i-built-a-cli-that-extracts-content-from-urls-and-turns-it-into-json-for-ai-3k97</link>
      <guid>https://dev.to/omar_fuentes/i-built-a-cli-that-extracts-content-from-urls-and-turns-it-into-json-for-ai-3k97</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F39tvxkjb2zke5t9iyn0h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F39tvxkjb2zke5t9iyn0h.png" alt=" " width="800" height="533"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;If I wanted to analyze several articles on the same topic, the process was always the same:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;open multiple tabs&lt;/li&gt;
&lt;li&gt;read each article&lt;/li&gt;
&lt;li&gt;copy headings&lt;/li&gt;
&lt;li&gt;copy paragraphs&lt;/li&gt;
&lt;li&gt;organize everything manually&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It was slow and repetitive.&lt;/p&gt;

&lt;p&gt;So I decided to automate it.&lt;/p&gt;

&lt;p&gt;That’s how &lt;strong&gt;&lt;a href="https://www.npmjs.com/package/content-scraper-cli" rel="noopener noreferrer"&gt;content-scraper-cli&lt;/a&gt;&lt;/strong&gt; was created.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Idea
&lt;/h2&gt;

&lt;p&gt;Instead of manually collecting information from multiple articles, I wanted a tool that could:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Take a list of URLs&lt;/li&gt;
&lt;li&gt;Extract the important parts of each page&lt;/li&gt;
&lt;li&gt;Organize everything in a structured format&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The result is a &lt;strong&gt;JSON file that can be used as research input for AI tools or content analysis&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing the CLI
&lt;/h2&gt;

&lt;p&gt;You can install the tool globally with npm:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; content-scraper-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run it from your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content-scraper
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CLI will ask for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the URLs you want to analyze&lt;/li&gt;
&lt;li&gt;the name of the JSON output file&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;📎 Enter URLs separated by comma:
https://blog.com/article-1, https://site.com/post-2

💾 Output JSON file name:
research-data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After processing the pages, the tool generates a JSON file with structured information from each article.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Tool Extracts
&lt;/h2&gt;

&lt;p&gt;For every URL, the CLI extracts:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Metadata&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;title&lt;/li&gt;
&lt;li&gt;meta description&lt;/li&gt;
&lt;li&gt;author (if available)&lt;/li&gt;
&lt;li&gt;publication date&lt;/li&gt;
&lt;li&gt;site language&lt;/li&gt;
&lt;li&gt;meta keywords&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Content Structure&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;H1 headings&lt;/li&gt;
&lt;li&gt;H2 headings&lt;/li&gt;
&lt;li&gt;H3 headings&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Content&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;paragraphs with meaningful length&lt;/li&gt;
&lt;li&gt;lists (ul / ol)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Statistics&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;total paragraphs&lt;/li&gt;
&lt;li&gt;total word count&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This makes it easy to analyze how different articles are structured.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example Output
&lt;/h2&gt;

&lt;p&gt;The output file contains structured data like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"generado_en"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"total_fuentes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"fuentes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"titulo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"estructura"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"h1"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"h2"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"h3"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"parrafos"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"listas"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This dataset can then be used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;content research&lt;/li&gt;
&lt;li&gt;SEO analysis&lt;/li&gt;
&lt;li&gt;AI article generation workflows&lt;/li&gt;
&lt;li&gt;studying how top articles structure their content&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I Built It
&lt;/h2&gt;

&lt;p&gt;The goal was simple:&lt;/p&gt;

&lt;p&gt;Make content research faster.&lt;/p&gt;

&lt;p&gt;Instead of manually reading and copying data from multiple pages, the CLI collects the structure of several articles in seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Notes
&lt;/h2&gt;

&lt;p&gt;The tool works best with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;blogs&lt;/li&gt;
&lt;li&gt;news websites&lt;/li&gt;
&lt;li&gt;long-form articles&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some sites with strong anti-bot protection may block requests.&lt;/p&gt;

&lt;p&gt;The CLI intentionally does &lt;strong&gt;not extract images&lt;/strong&gt; and does &lt;strong&gt;not rely on paid APIs&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Everything runs locally.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open Source
&lt;/h2&gt;

&lt;p&gt;The project is open source and available on npm.&lt;/p&gt;

&lt;p&gt;If you want to try it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; content-scraper-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://www.omarfuentes.com/en" rel="noopener noreferrer"&gt;Created Web Developer and Programmer omar fuentes&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>seo</category>
      <category>ai</category>
      <category>contentwriting</category>
    </item>
  </channel>
</rss>
