<?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: Dharmendra Kushwaha</title>
    <description>The latest articles on DEV Community by Dharmendra Kushwaha (@pjyprovider).</description>
    <link>https://dev.to/pjyprovider</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%2F4074915%2Fda9db4a1-0bdf-4f3c-b2f5-67739bd32179.png</url>
      <title>DEV Community: Dharmendra Kushwaha</title>
      <link>https://dev.to/pjyprovider</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pjyprovider"/>
    <language>en</language>
    <item>
      <title>Want to Contribute to Open Source? Join Me in Building 8DoTs</title>
      <dc:creator>Dharmendra Kushwaha</dc:creator>
      <pubDate>Sat, 03 Oct 2026 11:24:06 +0000</pubDate>
      <link>https://dev.to/pjyprovider/want-to-contribute-to-open-source-join-me-in-building-8dots-3pl9</link>
      <guid>https://dev.to/pjyprovider/want-to-contribute-to-open-source-join-me-in-building-8dots-3pl9</guid>
      <description>&lt;p&gt;Did you know that the software we write has a real-world carbon footprint? &lt;/p&gt;

&lt;p&gt;As developers, we constantly profile our code for execution time and memory usage. But &lt;strong&gt;energy consumption&lt;/strong&gt; remains largely invisible. That’s exactly what I’m trying to change with my open-source project, &lt;strong&gt;&lt;a href="https://github.com/uyg7x/8DoTs" rel="noopener noreferrer"&gt;8DoTs&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is 8DoTs?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;8DoTs&lt;/strong&gt; (internally structured as the &lt;code&gt;dol8&lt;/code&gt; Python package) is a command-line profiling tool designed to make energy consumption visible during software development. &lt;/p&gt;

&lt;p&gt;It reads hardware energy counters (RAPL - Running Average Power Limit) and thermal sensors directly from the Linux kernel to provide repeatable, high-resolution estimates of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How much energy a specific workload consumes&lt;/li&gt;
&lt;li&gt; How much heat it generates&lt;/li&gt;
&lt;li&gt; Whether it triggers thermal throttling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s built for bare-metal Linux environments (Intel/AMD CPUs) using &lt;strong&gt;Python 3.9+&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Contribute?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Make a Real Impact&lt;/strong&gt;: Green software engineering is the future. Your contribution will help developers worldwide write more energy-efficient code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Beginner-Friendly&lt;/strong&gt;: Whether you’re a seasoned Python developer or looking for your very first open-source PR, there’s a place for you here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Learn Low-Level Linux Concepts&lt;/strong&gt;: Get hands-on experience with hardware counters, thermal sensors, and system-level profiling.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Where You Can Help Right Now
&lt;/h2&gt;

&lt;p&gt;I’m actively looking for contributors to help tackle the following areas:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Expand Hardware Support&lt;/strong&gt;: Help add support for additional thermal sensor families or battery APIs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Improve Data Export&lt;/strong&gt;: Enhance the granularity and usability of the CSV timeline exports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enhance Real-Time Profiling&lt;/strong&gt;: Improve the &lt;code&gt;watch&lt;/code&gt; mode for better real-time process estimation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation &amp;amp; Tutorials&lt;/strong&gt;: Write guides, blog posts, or case studies demonstrating how to optimize energy in real-world applications. &lt;em&gt;(Perfect for beginners!)&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Check out the open issues here:&lt;/strong&gt; &lt;a href="https://github.com/uyg7x/8DoTs/issues" rel="noopener noreferrer"&gt;github.com/uyg7x/8DoTs/issues&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  How to Get Started
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Star the repo&lt;/strong&gt; to show your support: &lt;a href="https://github.com/uyg7x/8DoTs" rel="noopener noreferrer"&gt;github.com/uyg7x/8DoTs&lt;/a&gt; ⭐&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fork and Clone&lt;/strong&gt; the repository to your local machine.&lt;/li&gt;
&lt;li&gt;Check the &lt;code&gt;README.md&lt;/code&gt; for setup instructions and hardware requirements.&lt;/li&gt;
&lt;li&gt;Pick an issue that interests you, leave a comment saying you’re working on it, and submit a PR!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Note: Since 8DoTs relies on physical hardware counters, actual profiling requires bare-metal Linux. However, you can still run the test suite and contribute to the codebase/docs from Windows/WSL or macOS!&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Let’s Connect!
&lt;/h2&gt;

&lt;p&gt;Have a question? Want to brainstorm a new feature? Drop a comment below, open a discussion on GitHub, or reach out to me directly. &lt;/p&gt;

&lt;p&gt;Let’s build more sustainable software, together! 🌍💚&lt;/p&gt;




&lt;p&gt;&lt;em&gt;If you found this interesting, please **like&lt;/em&gt;* and &lt;strong&gt;repost&lt;/strong&gt; to help me reach more potential contributors!*&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>python</category>
      <category>programming</category>
      <category>sustainability</category>
    </item>
    <item>
      <title>I Built a Self-Healing Web Scraper That Refuses to Break</title>
      <dc:creator>Dharmendra Kushwaha</dc:creator>
      <pubDate>Wed, 12 Aug 2026 13:59:40 +0000</pubDate>
      <link>https://dev.to/pjyprovider/self-healing-scraper-1o21</link>
      <guid>https://dev.to/pjyprovider/self-healing-scraper-1o21</guid>
      <description>&lt;p&gt;Every developer who has worked with web scraping knows the pain: a website updates its UI, a CSS class name changes, and suddenly your entire data pipeline breaks. &lt;br&gt;
To solve this, I’ve been building a Self-Healing Web Scraper in Python. Instead of failing silently when a website redesigns, it automatically adapts, heals itself, and continues extracting data.&lt;br&gt;
--&amp;gt; The Problem&lt;br&gt;
"Normal scrapers are incredibly fragile. They rely on rigid HTML structures and CSS selectors. The moment a website changes its layout, your scraper dies". &lt;br&gt;
 The Solution: A 5-Layer Fallback Pipeline&lt;br&gt;
I designed an extraction engine that tries five different strategies in sequence. If one fails, it automatically falls back to the next:&lt;br&gt;
1) JSON-LD Parsing: Looks for structured data (the most resilient method).&lt;br&gt;
2) CSS Selectors: Traditional fast extraction if classes haven't changed.&lt;br&gt;
3) Regex Fallback: Pattern matching on raw HTML when CSS fails.&lt;br&gt;
4) Fuzzy Self-Healing: Scores nearby text blocks to find price symbols and product data as a last resort.&lt;br&gt;
5) LLM / AI Self-Healing: The newest addition! If all standard methods fail, it uses an LLM (Google Gemini or offline Ollama) to "read" the broken HTML and extract the products anyway.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Self-Learning Memory&lt;br&gt;
The scraper doesn't just survive; it learns. It remembers which extraction strategy worked best for a specific website and automatically prioritizes that method on the next run, saving execution time and API calls.&lt;br&gt;
|--| Key Features&lt;/p&gt;

&lt;p&gt;Multi-Site Price Comparison: Tested across Flipkart, Amazon, Robu.in, and more.&lt;br&gt;
AI-Powered Resilience: Uses Google Gemini or 100% offline Ollama for intelligent data extraction.&lt;br&gt;
Smart Garbage Filtering: Rejects junk data like menu items, ads, and accessories.&lt;br&gt;
Auto Currency Conversion: Automatically normalizes prices to ₹ INR.&lt;br&gt;
Dual Fetching &amp;amp; Stealth: Uses Playwright with stealth mode to bypass basic anti-bot detection.&lt;br&gt;
Persistent Storage: Saves data to an SQLite database and exports clean, timestamped CSV files.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;--&amp;gt;Watch it in Action&lt;br&gt;
I recorded a quick demo showing how the scraper handles failures and triggers the AI fallback:&lt;br&gt;
 --&amp;gt;Watch the Demo Video Here&lt;br&gt;
--&amp;gt; Check out the Code&lt;br&gt;
I am open-sourcing this project and would love to get feedback from the community on architecture, edge cases, or feature requests!&lt;br&gt;
🔗 GitHub Repository: &lt;a href="https://github.com/uyg7x/Self-Healing-Web-Scraper" rel="noopener noreferrer"&gt;https://github.com/uyg7x/Self-Healing-Web-Scraper&lt;/a&gt;&lt;br&gt;
If you find this useful or interesting, I would highly appreciate a ⭐ on the repo and your thoughts in the comments below! How do you currently handle website redesigns in your scraping pipelines?&lt;/p&gt;

</description>
      <category>automation</category>
      <category>python</category>
      <category>softwareengineering</category>
      <category>webscraping</category>
    </item>
  </channel>
</rss>
