<?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: sensen0025</title>
    <description>The latest articles on DEV Community by sensen0025 (@sensen0025).</description>
    <link>https://dev.to/sensen0025</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4116854%2Fbd0add92-009e-4dc7-a091-f9f4fdd7487b.png</url>
      <title>DEV Community: sensen0025</title>
      <link>https://dev.to/sensen0025</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sensen0025"/>
    <language>en</language>
    <item>
      <title>Resources downloader</title>
      <dc:creator>sensen0025</dc:creator>
      <pubDate>Wed, 09 Sep 2026 05:55:43 +0000</pubDate>
      <link>https://dev.to/sensen0025/resources-downloader-4b7g</link>
      <guid>https://dev.to/sensen0025/resources-downloader-4b7g</guid>
      <description>&lt;h1&gt;
  
  
  I Built a Downloader That Doesn't Ask for Permission
&lt;/h1&gt;

&lt;p&gt;Here's a small frustration we all share.&lt;/p&gt;

&lt;p&gt;You find a file. You click download. And then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Login required (for a public file)&lt;/li&gt;
&lt;li&gt;14 pop-ups before the button appears&lt;/li&gt;
&lt;li&gt;"Please verify you're human" — with 47 trackers loading in the background&lt;/li&gt;
&lt;li&gt;A captcha that takes 3 attempts&lt;/li&gt;
&lt;li&gt;Finally, an HTML page disguised as a PDF&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's not malicious. It's just how the web works now. Data collection, ad impressions, engagement metrics — everything comes before the user's actual goal.&lt;/p&gt;

&lt;p&gt;I got tired of it. So I built a tool.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;resources_downloader&lt;/strong&gt; — a DSH skill pack that downloads resources from virtually any site, using an LLM agent to plan and execute the strategy.&lt;/p&gt;

&lt;p&gt;The code doesn't hardcode site-specific scrapers. Instead, it gives the agent a set of generic tools and lets it figure out the approach.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;browser&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Playwright automation — login, modals, CAPTCHA solving, cookie export&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;download_file&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Range-resume downloads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;download_hls&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;M3U8 + AES-128 stream download&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;probe_file&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Magic bytes verification — ensures the file is real, not an error page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;run_code&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Execute one-off Python scripts for undocumented sites&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;memory_remember/query&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Persist working strategies per domain&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;21 skill cards&lt;/strong&gt; currently cover Bilibili (BBDown), YouTube (yt-dlp), Anna's Archive, Project Gutenberg, HuggingFace, Quark netdisk, LittleSkin, and more.&lt;/p&gt;

&lt;p&gt;If your site isn't covered, the agent writes a crawler on the spot.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Execution Flow
&lt;/h2&gt;

&lt;p&gt;The agent follows a structured workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check the catalog and query memory for past successes&lt;/li&gt;
&lt;li&gt;Prefer mature CLIs (BBDown, yt-dlp) before falling back to custom scripts&lt;/li&gt;
&lt;li&gt;Write and execute Python code if needed&lt;/li&gt;
&lt;li&gt;Verify the downloaded file — magic bytes, size, SHA-256&lt;/li&gt;
&lt;li&gt;Persist the winning strategy for next time&lt;/li&gt;
&lt;li&gt;If 3+ strategies fail, report failure with evidence and terminate gracefully&lt;/li&gt;
&lt;li&gt;Deliver full metadata — path, size, hash, source URL&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The goal is deterministic delivery. No empty files. No error pages passed off as downloads.&lt;/p&gt;




&lt;h2&gt;
  
  
  Free API Access — No Strings Attached
&lt;/h2&gt;

&lt;p&gt;Most projects require you to bring your own LLM API key. That's fine, but it adds friction.&lt;/p&gt;

&lt;p&gt;So I'm providing &lt;strong&gt;free API keys&lt;/strong&gt; for this service. No credit card required. No "start your free trial" nonsense. Just use it.&lt;br&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiirq6yk87tddemlferjn.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiirq6yk87tddemlferjn.png" alt=" " width="800" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>deepseek</category>
      <category>ai</category>
      <category>resources</category>
      <category>爬虫</category>
    </item>
  </channel>
</rss>
