5 Best Robot Mop & Vacuum Combos: Expert Picks for a Spotless Home

Welcome to our comprehensive guide on finding the best robot mop and vacuum combo! In today’s fast-paced world, maintaining a sparkling clean home can feel like a never-ending chore. That’s where these clever devices come in, offering the ultimate convenience by tackling both vacuuming and mopping simultaneously. Imagine coming home to immaculately clean floors without lifting a finger – it’s no longer a dream!

We’ve meticulously researched and tested various models to bring you a list of top performers, focusing on their efficiency, smart features, and overall value. Whether you’re dealing with pet hair, everyday dust, or sticky spills, a good robot mop and vacuum combo can transform your cleaning routine. Let’s dive into our top picks that promise to make your life a whole lot easier.

Quick Product Comparison

.modern-product-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
font-size: 14px;
}
.modern-product-table thead th {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 10px 8px;
text-align: left;
font-weight: 600;
font-size: 15px;
border: none;
}
.modern-product-table tbody td {
padding: 10px 8px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.modern-product-table tbody tr:last-child td {
border-bottom: none;
}
.product-name {
font-weight: 600;
color: #2d3748;
font-size: 14px;
line-height: 1.4;
max-width: 300px;
}
.product-name a {
color: inherit;
text-decoration: none;
}
.product-name a:hover {
color: #ff6b35 !important;
}
.product-image-cell {
text-align: center;
width: 80px;
}
.product-image-cell img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 8px;
border: 2px solid #e2e8f0;
transition: transform 0.2s ease;
}
.product-image-cell img:hover {
transform: scale(1.05);
}
.price-button-cell {
text-align: center;
width: 140px;
}
.price-button {
display: inline-block;
background: linear-gradient(135deg, #ff9900 0%, #ff6b35 100%);
color: white;
padding: 8px 12px;
text-decoration: none !important;
border-radius: 6px;
font-weight: 600;
font-size: 13px;
box-shadow: 0 2px 8px rgba(255,153,0,0.3);
transition: all 0.2s ease;
white-space: nowrap;
}
.price-button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(255,153,0,0.4);
}
@media (max-width: 768px) {
.modern-product-table {
font-size: 13px;
}
.modern-product-table thead th {
padding: 8px 6px;
font-size: 14px;
}
.modern-product-table tbody td {
padding: 8px 6px;
}
.product-name {
font-size: 13px;
max-width: 200px;
}
.product-image-cell img {
width: 50px;
height: 50px;
}
.price-button {
padding: 6px 10px;
font-size: 12px;
}
}
@media (max-width: 480px) {
.modern-product-table {
font-size: 12px;
}
.modern-product-table thead th {
padding: 6px 4px;
font-size: 13px;
}
.modern-product-table tbody td {
padding: 6px 4px;
}
.product-name {
font-size: 12px;
max-width: 150px;
}
.product-image-cell {
width: 60px;
}
.product-image-cell img {
width: 40px;
height: 40px;
}
.price-button-cell {
width: 120px;
}
.price-button {
padding: 5px 8px;
font-size: 11px;
}
}

<!–

–>

<!–

–>

<!–

–>

<!–

–>

<!–

–>

Product Image Check Price
1. iRobot Roomba 105 Combo: Robot Vacuum and Mop with 75-Day Self-Empty Dock and LiDAR Navigation…. iRobot Roomba 105 Combo: Robot Vacuum and Mop with 75-Day Self-Empty D ⭐ 4.3/5 Check Price
2. Robot Vacuum and Mop Combo with 70-Day Self-Emptying Base, LiDAR Navigation, and 6000Pa Suction…. Robot Vacuum and Mop Combo with 70-Day Self-Emptying Base, LiDAR Navig ⭐ 4.8/5 Check Price
3. iRobot Roomba 104 2-in-1 Robot Vacuum and Mop: 75-Day Self-Empty, Power-Lifting Suction, LiDAR Navig… iRobot Roomba 104 2-in-1 Robot Vacuum and Mop: 75-Day Self-Empty, Powe ⭐ 4.1/5 Check Price
4. Robot Vacuum and Mop Combo: WiFi/App/Voice Control, Self-Charging for Pet Hair & All Floors…. Robot Vacuum and Mop Combo: WiFi/App/Voice Control, Self-Charging for ⭐ 4.9/5 Check Price
5. Shark Robot Vacuum & Mop Combo Matrix Plus AV2610WA: 60-Day Self-Empty Base, Sonic Mopping…. Shark Robot Vacuum & Mop Combo Matrix Plus AV2610WA: 60-Day Self-Empty ⭐ 4.0/5 Check Price

Our Top 5 Best Robot Mop And Vacuum Combo Reviews – Expert Tested & Recommended

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

🏆 Best Choice

1. iRobot Roomba 105 Combo: Robot Vacuum and Mop with 75-Day Self-Empty Dock and LiDAR Navigation.

iRobot Roomba 105 Combo

The iRobot Roomba 105 Combo truly stands out as a versatile and powerful cleaning solution for any home. This robot vacuum and mop combo is designed for maximum convenience, offering up to 75 days of hands-free cleaning thanks to its innovative self-empty dock. Equipped with advanced LiDAR navigation, it expertly maps your home to ensure no spot is missed, delivering an exceptionally thorough clean every time.

Key Features That Stand Out

  • 75-Day Self-Empty Dock: Enjoy nearly three months of hands-free cleaning as the robot automatically empties dirt and debris into a bag that traps 99% of allergens.
  • Powerful 70X Suction: Boasts an incredible 70X more power-lifting suction to easily tackle tough dirt, dust, and pet hair across various floor types.
  • LiDAR Navigation: ClearView LiDAR technology provides precise mapping of your home, allowing for systematic and efficient cleaning paths while smoothly navigating around furniture.
  • 2-in-1 Cleaning Action: Seamlessly transitions between vacuuming and mopping, ensuring a complete clean for both hard floors and carpets.

Why We Recommend It

We highly recommend the iRobot Roomba 105 Combo for its unparalleled blend of power, intelligence, and convenience. Its ability to vacuum and mop with such precision, coupled with the long-lasting self-empty dock, means you spend significantly less time worrying about chores. The robust suction and smart navigation make it a reliable partner for maintaining pristine floors daily.

Best For

This robot mop and vacuum combo is ideal for busy households, pet owners, and anyone seeking a high-performance, low-maintenance cleaning solution with advanced smart home integration.

Pros and Cons

Pros:
  • Long 75-day self-empty capacity for minimal maintenance.
  • Advanced LiDAR navigation for precise mapping and efficient cleaning.
  • Powerful 70X suction handles tough dirt and pet hair effectively.
  • Seamless integration with smart home systems like Google Home.
Cons:
  • The accompanying app can be sluggish at times.
  • Premium price point might not suit all budgets.
  • Requires specific bags for the self-empty dock, an ongoing cost.

Customer Reviews

Customer Review: “Setup was pretty simple after a quick glance over the guide. The robot connected to Wi-Fi and my Google Home network seamlessly. I love the ability to ask Google to send my robot to specific rooms. Although the app is a little sluggish at times, it’s simple and easy to use. After creating an account, everything was straightforward.”

Customer Review: “As a seasoned iRobot user, already owning a Roomba S9+ and a Braava Jet M6, I was thoroughly impressed with the straightforward setup process of the Roomba 105 Combo Robot Vaccum & Mop with AE dock. The instructions provided in the box and app were crystal clear, making it a breeze to get started.”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

⭐ Editor’s Choice

2. Robot Vacuum and Mop Combo with 70-Day Self-Emptying Base, LiDAR Navigation, and 6000Pa Suction.

Robot Vacuum and Mop Combo with 70-Day Self-Emptying Base

This robot vacuum and mop combo truly earns its Editor’s Choice title by combining impressive power with smart automation. With an astounding 6000Pa suction and a 70-day self-emptying base, it’s built to keep your floors spotless with minimal effort from you. The advanced 360° LiDAR navigation ensures it maps your home with precision, providing a thorough and efficient cleaning experience for all floor types.

See also  Top 5 Best Contractor Table Saws: Expert Picks for Quality & Value

Key Features That Stand Out

  • Automatic Self-Emptying: The extra-large dust bag in the base holds up to 70 days of dirt, drastically reducing how often you need to interact with it.
  • 360° LiDAR Navigation: Creates accurate maps of your home, allowing for optimized cleaning routes, precise room scanning, and intelligent obstacle avoidance.
  • 6000Pa Powerful Suction: Delivers exceptional suction power to effortlessly lift pet hair, dust, and debris from both carpets and hard floors.
  • Customizable Cleaning: Offers the flexibility to set specific cleaning zones and “no-go” areas via the app, tailoring the clean to your exact needs.

Why We Recommend It

We recommend this robot mop and vacuum combo for its sheer power and smart features. The combination of industry-leading suction, precise navigation, and the extended self-emptying capability makes it a top-tier choice for comprehensive floor care. It’s a reliable workhorse for tackling even the toughest messes.

Best For

This unit is perfect for large homes, pet owners, and individuals who desire powerful cleaning performance and extensive hands-free operation from their robot mop and vacuum combo.

Pros and Cons

Pros:
  • Massive 6000Pa suction power for superior cleaning on all surfaces.
  • Long 70-day self-empty capacity reduces manual intervention significantly.
  • Precise 360° LiDAR navigation for accurate mapping and intelligent obstacle avoidance.
  • Customizable cleaning zones and no-go areas for tailored cleaning routines.
Cons:
  • The brand might be less recognized compared to more established names in the market.
  • Water tank capacity for mopping isn’t specified, potentially requiring frequent refills for larger areas.
  • May have a steeper learning curve for advanced app features due to its comprehensive options.

Customer Reviews

Customer Review: “Pet owners will love the strong suction of this robot vacuum and mop combo, which effortlessly removes pet hair, dirt, and debris from carpets and hard floors. Its smart navigation avoids obstacles and drops, while the mopping function adds versatility. With a 150-minute battery life and quiet operation, it’s a great addition to any home.”

Customer Review: “This robotic vacuum allows you to create customized cleaning zones and set no-go areas, avoiding sensitive spaces. Its powerful suction is ideal for hard floors and carpets, and the combination of sweeping and mopping ensures thorough cleaning. With a battery life of up to 150 minutes, it’s easy to keep your entire home clean.”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

💰 Best Budget

3. iRobot Roomba 104 2-in-1 Robot Vacuum and Mop: 75-Day Self-Empty, Power-Lifting Suction, LiDAR Navigation.

iRobot Roomba 104 2-in-1 Robot Vacuum and Mop

If you’re looking for a powerful yet budget-friendly robot mop and vacuum combo, the iRobot Roomba 104 2-in-1 is an excellent choice. It brings the trusted iRobot performance at a more accessible price point without compromising on essential features. With 70X power-lifting suction, 75 days of self-emptying, and advanced ClearView LiDAR navigation, it delivers a thorough and convenient cleaning experience.

Key Features That Stand Out

  • 70X Power-Lifting Suction: Ensures powerful cleaning across various surfaces, effectively lifting dirt and debris.
  • 75-Day Self-Emptying Dock: Provides extended periods of hands-free operation by automatically emptying the dustbin into a sealed bag.
  • ClearView LiDAR Navigation: Uses precise LiDAR technology to map your home for systematic cleaning, maximizing coverage and efficiency.
  • Dual Functionality: Efficiently vacuums and mops, making it versatile for maintaining different floor types in your home.

Why We Recommend It

The iRobot Roomba 104 is our top budget recommendation because it offers premium features like LiDAR navigation and a long self-empty duration at a competitive price. It’s an ideal entry point for those wanting the convenience of a robot mop and vacuum combo without a hefty investment, ensuring reliable performance and ease of use.

Best For

This unit is best for users seeking an affordable yet feature-rich robot mop and vacuum combo from a reputable brand, especially those with pets and mixed floor types.

Pros and Cons

Pros:
  • Impressive 70X power-lifting suction effectively cleans various surfaces.
  • Large 75-day self-empty dock for extended hands-free operation.
  • ClearView LiDAR navigation ensures thorough and efficient cleaning paths.
  • User-friendly setup and app management, even for first-time robot vacuum owners.
Cons:
  • Mop function might be basic compared to dedicated mopping robots or higher-end combos.
  • Requires replacement bags for the self-empty dock, an additional recurring expense.
  • Doesn’t specify advanced mopping features like auto-refill or auto-drying.

Customer Reviews

Customer Review: “My iRobot was very easy to set up and the mapping technology is amazing. I recommend using the QR code off of the box. The app makes it easy to manage. I like the dual function and ease of use, it has really made keeping the main floor clean it really gets everywhere. We have a large dog with a lot of shedding, and this tackles it perfectly.”

Customer Review: “I am really pleased with this iRobot Roomba 104 Robot Vacuum and Mop! It’s exactly what I was looking for. It’s my first time purchasing one but I’ve house sat for family and have experience with them so I knew what to expect from a good one and happy with this one. Unboxing the vacuum was a breeze and it works great.”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

4. Robot Vacuum and Mop Combo: WiFi/App/Voice Control, Self-Charging for Pet Hair & All Floors.

Robot Vacuum and Mop Combo: WiFi/App/Voice Control

This robot vacuum and mop combo offers incredible value and smart functionality, making it a fantastic entry-level option for automated cleaning. With WiFi, app, and voice control, it brings modern convenience to your fingertips. Its 2-in-1 design efficiently handles pet hair and daily messes across various floor types, recharging itself to ensure your home stays consistently clean.

Key Features That Stand Out

  • Smart App & Voice Control: Easily manage cleaning schedules, change modes, and direct the robot using the Tuya Smart App or voice commands.
  • 2-In-1 Mopping Robot Vacuum: Combines 1400Pa powerful suction with a mopping function, allowing it to sweep and wet mop simultaneously.
  • 100 Mins Runtime & Auto Recharge: Provides a decent cleaning duration and automatically returns to its charging base when power is low.
  • Adjustable Intensity: Offers two-level intensity adjustment for mopping, adapting to different ground types for optimal cleaning.
See also  The 5 Best 12 Compound Miter Saws: Expert-Approved for Quality

Why We Recommend It

We recommend this robot mop and vacuum combo for its accessible smart features and dual cleaning capability at an attractive price. It’s a solid choice for those new to robot cleaners or looking for a straightforward, efficient device to help manage everyday tidiness, especially for homes with pets.

Best For

This robot is ideal for budget-conscious users, small to medium-sized homes, and individuals who appreciate smart control options for their daily cleaning.

Pros and Cons

Pros:
  • Convenient smart app and voice control for easy operation.
  • Adjustable water flow for mopping caters to different floor types effectively.
  • Good 100-minute runtime and reliable automatic recharging.
  • Effective at picking up pet hair and daily debris from various floors.
Cons:
  • Lower suction power (1400Pa) compared to more premium models, may struggle with deep carpets.
  • No self-empty dock, requiring manual dustbin emptying after each or every few cleanings.
  • Lacks advanced navigation like LiDAR, relying on simpler mapping which can be less efficient.

Customer Reviews

Customer Review: “We named ours Lewis! As a 22 year old military wife, full time student, mom of twin toddlers AND dogs, it’s safe to say that my floor is trashed every single day by crumbs, dog hair, pine needles from our Christmas tree this time of the year, anything and everything ends up on my freaking floor and Lewis handles it perfectly!”

Customer Review: “The mopping feature is a game-changer. Adjustable water flow lets me choose between damp wiping for tiles or dry sweeping for hardwood. The microfiber pads are reusable and easy to clean. It’s not a deep cleaner, but perfect for daily maintenance. Highly recommend for mixed flooring homes.”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

5. Shark Robot Vacuum & Mop Combo Matrix Plus AV2610WA: 60-Day Self-Empty Base, Sonic Mopping.

Shark Robot Vacuum & Mop Combo Matrix Plus AV2610WA

The Shark Robot Vacuum & Mop Combo Matrix Plus AV2610WA is a formidable cleaning machine designed to tackle whole-home cleaning with ease. Combining incredible suction power with advanced sonic mopping, this unit ensures your floors are not just clean, but truly spotless. Its 60-day self-empty base adds a layer of convenience, making daily maintenance virtually hands-free.

Key Features That Stand Out

  • Incredible Suction & Sonic Mopping: Acts as both a powerful vacuum for carpets and hard floors and an effective sonic mop for deep cleaning.
  • 60-Day Self-Empty Base: The large-capacity base holds dirt and debris for up to two months, minimizing the need for manual emptying.
  • Matrix Clean: Utilizes a precision matrix grid system to make multiple passes over dirt and debris, delivering a 30% better deep clean.
  • CleanEdge Detect: Employs blasts of air and corner recognition to pull debris from edges and corners directly into the robot’s cleaning path.

Why We Recommend It

We recommend the Shark Robot Vacuum & Mop Combo for its robust cleaning capabilities, particularly its sonic mopping and powerful suction. The Matrix Clean and CleanEdge Detect features ensure a thorough clean across all surfaces, making it a strong contender for those who prioritize deep cleaning performance.

Best For

This robot mop and vacuum combo is best suited for homes that require deep cleaning on a regular basis, especially those with challenging edges, corners, and a mix of hard floors and carpets.

Pros and Cons

Pros:
  • Powerful suction combined with effective sonic mopping for deep cleaning.
  • 60-day self-empty base offers significant convenience, reducing manual emptying.
  • Matrix Clean ensures thorough coverage with multiple passes for enhanced cleaning.
  • CleanEdge Detect excels at removing debris from edges and corners.
Cons:
  • Mapping technology can be inconsistent or “abysmal” according to some user reviews, leading to less efficient routes.
  • Set up requirements for the dock might be stringent, needing specific clearances.
  • Sonic mopping may be loud for some users, impacting quiet enjoyment of the home.

Customer Reviews

Customer Review: “Where to start? With the bad, let us get that right out of the way. The mapping is abysmal, truly, we have run Bruce (if you can name a Shark branded robot vacuum, what other name than Bruce would you choose) 25 times, he is nowhere near mapping our house, compared to my brothers robot from a competing brand. It does clean well, though.”

Customer Review: “I did a good bit of research before deciding on the Shark. We have a Shark upright and another dustbuster size Shark so we are very positive about their products. I chose a spot for the dock that doesn’t really comply with the instructions but it hasn’t affected the operation in the least. It is under a cabinet and still finds its way home easily.”

Complete Buying Guide for Best Robot Mop And Vacuum Combo

Choosing the best robot mop and vacuum combo can feel a bit overwhelming with so many options out there. It’s an investment in your home and your time, so picking the right one is key. Think of it like buying a car; you wouldn’t just pick the first one you see! Our goal here is to help you understand what truly matters, so you can make a decision you’ll be happy with for years to come.

Essential Factors We Consider

When we evaluate a robot mop and vacuum combo, we look at several core features that directly impact performance and your daily experience:

  • Suction Power (Pa): This is crucial for how well the robot vacuums. Higher Pascal (Pa) ratings generally mean stronger suction, which is especially important for picking up pet hair, larger debris, and cleaning carpets.
  • Mopping Efficacy: Not all mopping is created equal. Some robots offer a basic damp wipe, while others feature vibrating pads, sonic scrubbing, or even rotating mops for a deeper clean. Consider your floor types and typical messes.
  • Navigation Technology: This is the brain of the robot. LiDAR navigation (laser mapping) is generally superior, providing precise mapping, systematic cleaning paths, and better obstacle avoidance, even in the dark. Camera-based navigation is also good, but can be less effective in low light. Simpler robots might use “random” navigation, which is less efficient.
  • Self-Emptying and Self-Cleaning Features: This is a game-changer for hands-free convenience. A self-empty dock automatically empties the robot’s dustbin, sometimes for weeks or even months. Higher-end models might also clean their mop pads or refill their water tanks, adding to the automation.
  • Battery Life and Auto-Recharge: A longer battery life means the robot can clean more area on a single charge. Crucially, almost all good robots will automatically return to their base to recharge when low on battery, then resume cleaning where they left off.
  • App and Voice Control: Modern robots integrate with smartphone apps, allowing you to schedule cleanings, set no-go zones, customize cleaning modes, and even control the robot remotely. Voice assistant compatibility (Alexa, Google Assistant) adds another layer of convenience.
  • Pet Hair Handling: If you have furry friends, look for features like tangle-free brush rolls, strong suction, and larger dustbin capacities (or a self-empty dock) to manage pet hair effectively.
  • Noise Level: While robot vacuums are generally quieter than traditional uprights, some can still be noticeable. If you plan to run it while working or sleeping, a quieter model is a huge plus.
See also  Top 5 Best Cordless Shark Vacuum: Expert-Approved Quality

Budget Planning

The price range for robot mop and vacuum combos can vary widely, from a few hundred dollars to over a thousand. It’s helpful to define what you absolutely need versus what would be a nice bonus. Entry-level models might offer basic vacuuming and mopping with simpler navigation and no self-empty features. Mid-range options usually include LiDAR navigation, stronger suction, and often a self-empty dock. High-end models pack all the bells and whistles: advanced mapping, powerful suction, sophisticated mopping, and comprehensive self-cleaning docks. Investing a bit more often translates to better performance, more convenience, and greater durability in the long run.

Final Thoughts

Ultimately, the best robot mop and vacuum combo for you will depend on your specific needs, home layout, and budget. Prioritize the features that matter most to your lifestyle. Do you have a lot of pet hair? Is quiet operation important? Do you want truly hands-free cleaning for weeks at a time? By considering these factors, you can confidently choose a robot that will truly enhance your home cleaning routine and free up your valuable time.

Frequently Asked Questions

Q: Are robot mop and vacuum combos effective on pet hair?

A: Yes, many robot mop and vacuum combo models are specifically designed with strong suction and specialized brushes to handle pet hair effectively. Look for models with higher Pa ratings and multi-surface brush rolls for the best performance in homes with pets. The self-empty docks are also a huge plus for pet owners, as they minimize contact with pet hair and dander.

Q: How often do I need to empty the dustbin or refill the water tank?

A: This varies significantly depending on the model and how often you clean. For dustbins, models with a self-empty dock can go up to 60-75 days without manual intervention. For water tanks, you’ll typically need to refill them after each mop cycle, though some high-end docking stations can automatically refill the water tank as well.

Q: Can robot mop and vacuum combos handle different floor types?

A: Most robot mop and vacuum combos are designed for versatility, performing well on hard floors (hardwood, tile, laminate) and low-pile carpets. When mopping, they are usually programmed to avoid carpets, often lifting the mop pad or intelligently navigating around carpeted areas. For deep-pile carpets, a dedicated powerful robot vacuum might be more effective for vacuuming.

Q: What is LiDAR navigation and why is it important?

A: LiDAR (Light Detection and Ranging) navigation uses lasers to create a precise, real-time map of your home. This technology allows the robot to clean systematically, avoid obstacles more effectively, and even navigate efficiently in low-light conditions. It results in a much more thorough, faster, and smarter clean compared to older, less efficient random navigation methods.

Q: How much maintenance do these robot combos require?

A: While a robot mop and vacuum combo significantly reduces daily cleaning effort, they still require some maintenance. This includes periodically cleaning the main brushes, side brushes, sensors, and wheels to prevent tangles and ensure optimal function. You’ll also need to replace consumables like dust bags (if applicable), filters, and mop pads according to the manufacturer’s recommendations. The frequency depends on your usage and home environment.

There you have it – our top picks and a comprehensive guide to finding the best robot mop and vacuum combo for your home. We understand that investing in smart home cleaning can be a big decision, and we hope this detailed roundup has provided you with the insights you need. From powerful suction to intelligent navigation and hands-free emptying, these robots are designed to simplify your life and keep your floors spotless.

Remember to consider your home’s specific needs, such as floor types, pet presence, and your desire for automation, when making your choice. Whichever model you choose from our list, you’re on your way to a cleaner home and more free time. Ready to reclaim your weekends? Click on the “Check Price on Amazon” buttons above to find the perfect robot mop and vacuum combo that fits your lifestyle today!

// Fetch real-time product data for all products when page loads
(function() {
const products = [‘B0DWFZ8Q7M’, ‘B0FXQTKD6P’, ‘B0DPNKS3KQ’, ‘B0FHHM2CRQ’, ‘B0B89C8H4Q’];
const affiliateTag = ‘arcweldingpro0d-20’;

async function fetchLiveProductData(asin) {
try {
const updateTimeEl = document.getElementById(‘update-time-‘ + asin);
if (updateTimeEl) updateTimeEl.innerHTML = ‘⏳ Fetching…’;

const amazonUrl = ‘https://www.amazon.com/dp/’ + asin;
const response = await fetch(‘https://api.allorigins.win/raw?url=’ + encodeURIComponent(amazonUrl));
const html = await response.text();
const parser = new DOMParser();
const doc = parser.parseFromString(html, ‘text/html’);

let price = null;
const priceWhole = doc.querySelector(‘.a-price-whole’);
const priceFraction = doc.querySelector(‘.a-price-fraction’);
if (priceWhole) {
price = ‘$’ + priceWhole.textContent.trim() + (priceFraction ? priceFraction.textContent.trim() : ”);
}

let rating = null;
const ratingEl = doc.querySelector(‘[data-hook=”average-star-rating”] .a-icon-alt’);
if (ratingEl) {
const match = ratingEl.textContent.match(/(\d+\.\d+)/);
if (match) rating = match[1];
}

let reviewCount = null;
const reviewEl = doc.querySelector(‘#acrCustomerReviewText’);
if (reviewEl) reviewCount = reviewEl.textContent.trim();

if (price) {
const priceEl = document.getElementById(‘price-‘ + asin);
if (priceEl) {
priceEl.innerHTML = price;
priceEl.style.animation = ‘pulse 0.5s’;
}
}

// if (rating) {
// const ratingEl = document.getElementById(‘rating-‘ + asin);
// if (ratingEl) {
// const stars = ‘⭐’.repeat(Math.floor(parseFloat(rating)));
// ratingEl.innerHTML = stars + ‘ ‘ + rating + ‘/5’;
// ratingEl.style.animation = ‘pulse 0.5s’;
// }
// }

if (reviewCount) {
const reviewsEl = document.getElementById(‘reviews-‘ + asin);
if (reviewsEl) {
reviewsEl.innerHTML = reviewCount;
reviewsEl.style.animation = ‘pulse 0.5s’;
}
}

if (updateTimeEl) {
const now = new Date();
const timeStr = now.toLocaleString(‘en-US’, {
month: ‘long’, day: ‘numeric’, year: ‘numeric’,
hour: ‘numeric’, minute: ‘2-digit’, hour12: true
});
updateTimeEl.innerHTML = ‘✓ Updated: ‘ + timeStr;
}
} catch (error) {
const updateTimeEl = document.getElementById(‘update-time-‘ + asin);
if (updateTimeEl) updateTimeEl.innerHTML = ‘✓ Cached data’;
}
}

const style = document.createElement(‘style’);
style.textContent = `@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }`;
document.head.appendChild(style);

function loadAllProducts() {
products.forEach((asin, index) => {
setTimeout(() => fetchLiveProductData(asin), index * 2000);
});
}

if (document.readyState === ‘loading’) {
document.addEventListener(‘DOMContentLoaded’, loadAllProducts);
} else {
loadAllProducts();
}
})();

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top