<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged insta-scrapeer</title>
<link>https://coderlegion.com/tag/insta-scrapeer</link>
<description>Powered by Question2Answer</description>
<item>
<title>InstaScrape</title>
<link>https://coderlegion.com/5818/instascrape</link>
<description>&lt;h2 id=&quot;instascrape-async-instagram-comment-scraper&quot;&gt;InstaScrape — Async Instagram Comment Scraper&lt;/h2&gt;
&lt;p&gt;Scrape &lt;strong&gt;all parent comments&lt;/strong&gt; from any Instagram Reel with &lt;strong&gt;automated login&lt;/strong&gt;, &lt;strong&gt;async speed&lt;/strong&gt;, &lt;strong&gt;real-time progress&lt;/strong&gt;, and &lt;strong&gt;clean exports&lt;/strong&gt; — no manual cookie copying required.&lt;/p&gt;
&lt;h3 id=&quot;-features&quot;&gt;✨ Features&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;✅ &lt;strong&gt;Automated Login&lt;/strong&gt;: &lt;code&gt;cookie.json&lt;/code&gt; persistence with iat + expiry, no manual cookies needed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Self-healing Auth&lt;/strong&gt;: detects expired cookies mid-run, prompts relogin, resumes automatically.&lt;/li&gt;
&lt;li&gt;⚡ &lt;strong&gt;Async Engine&lt;/strong&gt;: powered by &lt;code&gt;httpx.AsyncClient&lt;/code&gt; with requests-per-second throttling.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Progress Tracking&lt;/strong&gt;: accurate percent and ETA from Instagram’s comment count.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dual Exports&lt;/strong&gt;: TXT and JSON files saved in timestamped folders.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;requirements&quot;&gt;Requirements&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Python &lt;strong&gt;3.9+&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Dependencies:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pip install -r requirements.txt
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;-installation&quot;&gt;️ Installation&lt;/h3&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/kaifcodec/InstaScrape
cd InstaScrape
pip install -r requirements.txt
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;-usage&quot;&gt;▶️ Usage&lt;/h3&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;python3 main.py
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Enter the Instagram Reel URL (e.g., &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.instagram.com/reel/SHORTCODE/&quot;&gt;https://www.instagram.com/reel/SHORTCODE/&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Set Max requests per second (5-7 recommended). Adjust for stability.&lt;/li&gt;
&lt;li&gt;On first run, provide username/password; cookie.json is created and reused until expiry.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;output&quot;&gt;Output&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;TXT: download_comments/txt/reel_comments_YYYYMMDD_HHMMSS.txt&lt;/li&gt;
&lt;li&gt;JSON: download_comments/json/reel_comments_YYYYMMDD_HHMMSS.json&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;example-structure-&quot;&gt;Example structure:&lt;/h3&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  &quot;generated_at&quot;: 1700000000,
  &quot;count&quot;: 123,
  &quot;comments&quot;: [
    { &quot;username&quot;: &quot;user1&quot;, &quot;text&quot;: &quot;Nice!&quot;, &quot;created_at&quot;: 1699999000 }

&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;how-it-works&quot;&gt;How it Works&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Cookie Lifecycle: cookie.json stores iat and expiry; validated on startup &amp;amp; during requests.&lt;/li&gt;
&lt;li&gt;Error Resilience: retries transient errors and refreshes cookies on 401/redirect-to-login.&lt;/li&gt;
&lt;li&gt;Progress Accuracy: uses Instagram’s comment count to calculate percent &amp;amp; ETA.&lt;/li&gt;
&lt;li&gt;Async Efficiency: httpx.AsyncClient with HTTP/2, keep-alive, and RPS limiter.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Repository url: &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/kaifcodec/InstaScrape.git&quot;&gt;https://github.com/kaifcodec/InstaScrape.git&lt;/a&gt;&lt;/p&gt;
</description>
<category>CLI Tools &amp; Scripts</category>
<guid isPermaLink="true">https://coderlegion.com/5818/instascrape</guid>
<pubDate>Tue, 30 Sep 2025 14:14:14 +0000</pubDate>
</item>
</channel>
</rss>