<?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: Anurag Panda</title>
    <description>The latest articles on DEV Community by Anurag Panda (@anurag_panda).</description>
    <link>https://dev.to/anurag_panda</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%2F3327297%2Fb21fa06d-8793-4a92-a021-c5a41f014d40.png</url>
      <title>DEV Community: Anurag Panda</title>
      <link>https://dev.to/anurag_panda</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anurag_panda"/>
    <language>en</language>
    <item>
      <title>ig-harvester: an open-source Instagram OSINT toolkit built on Playwright + CDP</title>
      <dc:creator>Anurag Panda</dc:creator>
      <pubDate>Fri, 09 Oct 2026 06:05:07 +0000</pubDate>
      <link>https://dev.to/anurag_panda/ig-harvester-an-open-source-instagram-osint-toolkit-built-on-playwright-cdp-33l7</link>
      <guid>https://dev.to/anurag_panda/ig-harvester-an-open-source-instagram-osint-toolkit-built-on-playwright-cdp-33l7</guid>
      <description>&lt;p&gt;Instagram doesn't have a public API for the kind of data OSINT work actually needs —&lt;br&gt;
comment threads with reply hierarchies, full follower lists, carousel slides at original&lt;br&gt;
resolution. So most tools in this space either reverse-engineer the private API (fragile)&lt;br&gt;
or drive a browser (slow, easy to get wrong).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/anurag-panda-dev/ig-harvester" rel="noopener noreferrer"&gt;ig-harvester&lt;/a&gt;&lt;/strong&gt; takes the second route,&lt;br&gt;
but with a twist that solves the hardest part of browser-based collection: &lt;em&gt;it attaches to a&lt;br&gt;
Chrome window you're already logged into&lt;/em&gt; via the Chrome DevTools Protocol (CDP).&lt;/p&gt;



&lt;blockquote&gt;
&lt;p&gt;Disclosure: I built ig-harvester. It's MIT-licensed and free. This post explains how it&lt;br&gt;
works, not just what it does.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  The core idea: bring your own session
&lt;/h2&gt;

&lt;p&gt;Most scrapers try to &lt;em&gt;become&lt;/em&gt; logged in — storing cookies, solving challenges, rotating&lt;br&gt;
accounts. That's a losing arms race, and it puts the tool in a bad spot legally and&lt;br&gt;
operationally.&lt;/p&gt;

&lt;p&gt;ig-harvester instead launches Chrome with remote debugging (one PowerShell script), you log&lt;br&gt;
in with a burner account in that window, and the tool &lt;strong&gt;attaches&lt;/strong&gt; to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\dependencies\launch-chrome-debug.ps1&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="c"&gt;# Chrome with CDP on :9222&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="c"&gt;# log into your burner account, keep the window open&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\ig-harvester.ps1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;scrape&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;someuser&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--posts&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;50&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--comments&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--followers&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--sqlite&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Everything the harvest does, your session could do by hand. No API keys, no token storage,&lt;br&gt;
nothing leaves your machine.&lt;/p&gt;
&lt;h2&gt;
  
  
  Triple-source extraction
&lt;/h2&gt;

&lt;p&gt;The single biggest failure mode of Instagram scrapers is relying on &lt;strong&gt;one&lt;/strong&gt; signal.&lt;br&gt;
Instagram serves content three different ways, and each one breaks at different times:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Embedded Relay JSON&lt;/strong&gt; — the &lt;code&gt;__ NEXT_DATA__&lt;/code&gt;-style blob in the page source. Rich
(carousels, comment threads, exact timestamps) but occasionally absent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Semantic DOM&lt;/strong&gt; — walking the accessibility-oriented markup. Always present, but
shallower.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Screenshots&lt;/strong&gt; — the ground truth for anything the first two disagree on.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ig-harvester mines all three and cross-checks. When live Instagram stopped embedding sidecar&lt;br&gt;
JSON for carousels (it did, recently), the tool didn't break — it fell back to &lt;em&gt;walking the&lt;br&gt;
post&lt;/em&gt; with the Next button and reading each slide's &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;/&lt;code&gt;srcset&lt;/code&gt; at full resolution.&lt;/p&gt;
&lt;h2&gt;
  
  
  Resumability is not optional
&lt;/h2&gt;

&lt;p&gt;A 500-post harvest takes a while, and browsers crash. Every run writes a SQLite cache keyed&lt;br&gt;
by shortcode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;out/someuser/
  someuser.json            # payload + analytics
  someuser-posts.csv       # one row per post
  someuser-comments.csv    # one row per comment
  someuser-followers.csv
  someuser-following.csv
  someuser.db              # --sqlite
  .cache.db                # resume cache
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Kill the process halfway, run it again, and it continues where it stopped instead of&lt;br&gt;
re-collecting the first 250 posts. &lt;code&gt;--no-resume&lt;/code&gt; disables it when you want a clean sweep.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pacing like a human, not a loop
&lt;/h2&gt;

&lt;p&gt;Rate limiting is where "it works on my machine" dies in production. The tool uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;jittered delays&lt;/strong&gt; between actions (&lt;code&gt;--delay-min 900 --delay-max 2600&lt;/code&gt;, in ms)&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;token bucket&lt;/strong&gt; for burst control&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;exponential backoff&lt;/strong&gt; on transient failures&lt;/li&gt;
&lt;li&gt;optional &lt;strong&gt;HTTP/SOCKS5 proxy&lt;/strong&gt; support for operational security
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node dependencies/scrape-ig.mjs &lt;span class="nt"&gt;--profile&lt;/span&gt; someuser &lt;span class="nt"&gt;--proxy&lt;/span&gt; http://127.0.0.1:8080 &lt;span class="nt"&gt;--delay-min&lt;/span&gt; 1200
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Data out, insights out
&lt;/h2&gt;

&lt;p&gt;Raw data is the start, not the end. Every run computes engagement rate, posting cadence,&lt;br&gt;
best posting hour/day, top hashtags and mentions, follower/following ratio, and bio signals&lt;br&gt;
(email/phone/URL detection) — straight into the JSON payload.&lt;/p&gt;

&lt;p&gt;Then there's &lt;code&gt;ig-analyzer&lt;/code&gt;, a live dashboard on &lt;code&gt;localhost:8080&lt;/code&gt; that charts likes per post,&lt;br&gt;
posts by hour/day, and content mix for any scraped or archived profile.&lt;/p&gt;

&lt;p&gt;For the archive-minded: &lt;code&gt;import-data.ps1&lt;/code&gt; copies each run into a dated snapshot (re-scrapes&lt;br&gt;
never overwrite history), so follower counts stay comparable over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  One entry point, no CLI archaeology
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\ig-harvester.ps1&lt;/span&gt;&lt;span class="w"&gt;                                    &lt;/span&gt;&lt;span class="c"&gt;# interactive menu&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\ig-harvester.ps1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;scrape&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;someuser&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--posts&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;50&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--comments&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\ig-harvester.ps1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Action&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Full&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-User&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;someuser&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Yes&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="c"&gt;# scrape -&amp;gt; images -&amp;gt; archive&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\ig-harvester.ps1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Action&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Doctor&lt;/span&gt;&lt;span class="w"&gt;                      &lt;/span&gt;&lt;span class="c"&gt;# environment check&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-Yes&lt;/code&gt; makes it non-interactive for CI, &lt;code&gt;-DryRun&lt;/code&gt; prints the exact commands, and exit codes&lt;br&gt;
are deterministic (&lt;code&gt;0&lt;/code&gt; ok, &lt;code&gt;1&lt;/code&gt; step failed, &lt;code&gt;2&lt;/code&gt; usage error). On macOS/Linux, run the Node&lt;br&gt;
CLIs directly — same flags, same behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repo:&lt;/strong&gt; &lt;a href="https://github.com/anurag-panda-dev/ig-harvester" rel="noopener noreferrer"&gt;github.com/anurag-panda-dev/ig-harvester&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Site &amp;amp; full CLI reference:&lt;/strong&gt; &lt;a href="https://anurag-panda-dev.github.io/ig-harvester/" rel="noopener noreferrer"&gt;anurag-panda-dev.github.io/ig-harvester&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Requires Node ≥ 20 and Chrome. &lt;code&gt;npm install &amp;amp;&amp;amp; npm test&lt;/code&gt; to verify your setup.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Ethical use:&lt;/strong&gt; ig-harvester is intended for legitimate OSINT research, journalism,&lt;br&gt;
security audits and education. You are responsible for complying with applicable laws,&lt;br&gt;
Instagram's Terms of Service and privacy regulations (GDPR, CCPA) — and for confirming&lt;br&gt;
consent before collecting data about someone.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Have you built browser-based collectors for sites with no API? I'd love to hear how you&lt;br&gt;
handled extraction fallbacks — the carousel problem was the interesting one for me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>opensource</category>
      <category>osint</category>
      <category>webdev</category>
    </item>
    <item>
      <title>🧑‍💼 Face Attendance Maker using Streamlit and OpenCV 😎</title>
      <dc:creator>Anurag Panda</dc:creator>
      <pubDate>Sun, 06 Jul 2025 03:17:04 +0000</pubDate>
      <link>https://dev.to/anurag_panda/face-attendance-maker-using-streamlit-and-opencv-3fh0</link>
      <guid>https://dev.to/anurag_panda/face-attendance-maker-using-streamlit-and-opencv-3fh0</guid>
      <description>&lt;p&gt;📌 Published by &lt;a href="https://dev.to/anurag_panda"&gt;@anurag_panda&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🚀 GitHub Repo: &lt;a href="https://github.com/anurag-panda-nshm/face-attendance-maker" rel="noopener noreferrer"&gt;Face Attendance Maker&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;👋 Introduction
Attendance tracking is a crucial part of any educational institution or organization, but the traditional method of calling names or marking attendance manually is outdated and error-prone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built Face Attendance Maker — a modern solution that uses face recognition to automate attendance using Streamlit for the UI and OpenCV for the camera and image processing.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;🧠 Features&lt;br&gt;
✅ Real-time face detection using OpenCV&lt;br&gt;
✅ Attendance tracking with time stamps&lt;br&gt;
✅ Streamlit-based UI for ease of use&lt;br&gt;
✅ CSV export of attendance records&lt;br&gt;
✅ Simple, clean, and fast&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;🧰 Tech Stack&lt;br&gt;
Python&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Streamlit – for the front-end UI&lt;/p&gt;

&lt;p&gt;OpenCV – for face detection and camera access&lt;/p&gt;

&lt;p&gt;face_recognition – for comparing and identifying faces&lt;/p&gt;

&lt;p&gt;NumPy &amp;amp; Pandas – for data handling&lt;/p&gt;

&lt;p&gt;CSV – for storing attendance records&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🚦 How It Works
Upload or register known faces in a folder &lt;code&gt;(ImagesAttendance/)&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Launch the Streamlit app&lt;/p&gt;

&lt;p&gt;Camera opens and starts detecting faces&lt;/p&gt;

&lt;p&gt;If a known face is found:&lt;/p&gt;

&lt;p&gt;Name and timestamp are recorded&lt;/p&gt;

&lt;p&gt;Data is saved into Attendance.csv&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🖥️ Getting Started
Clone the repo:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/anurag-panda-nshm/face-attendance-maker
&lt;span class="nb"&gt;cd &lt;/span&gt;face-attendance-maker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install dependencies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;streamlit run app.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;📸 Make sure your webcam is enabled.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📂 Folder Structure
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;📁 face-attendance-maker/
├── app.py
├── Attendance.csv
├── ImagesAttendance/
│   └── anurag.jpg
├── requirements.txt
└── ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add more images to &lt;code&gt;ImagesAttendance/&lt;/code&gt; with filenames as the person’s name.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🔍 Use Cases
Classroom attendance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Workplace check-ins&lt;/p&gt;

&lt;p&gt;Event registrations&lt;/p&gt;

&lt;p&gt;Lab/Library access tracking&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;⚙️ Future Improvements
Face registration through the UI&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Multi-user support and login system&lt;/p&gt;

&lt;p&gt;Dashboard with analytics&lt;/p&gt;

&lt;p&gt;Integration with cloud databases like Supabase or Firebase&lt;/p&gt;

&lt;p&gt;🙌 Let's Collaborate!&lt;br&gt;
Feel free to fork, contribute, or open issues!&lt;br&gt;
⭐ Star the repo if you like the project!&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/anurag-panda-nshm/face-attendance-maker" rel="noopener noreferrer"&gt;https://github.com/anurag-panda-nshm/face-attendance-maker&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;💬 Final Thoughts
Building this project taught me how powerful and fun real-time computer vision can be. With Streamlit, it's easier than ever to turn Python scripts into beautiful web apps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let me know your thoughts or improvements!&lt;/p&gt;

&lt;p&gt;📧 Reach out on &lt;a href="https://linkedin.com/in/anurag-panda-" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; or drop a comment below 👇&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
