Save Infinite Scroll Search Results on Indian Shopping Sites
This guide shows you how to save product search results from Indian shopping websites like Amazon.in, Flipkart, Myntra, and Ajio when the page uses infinite scroll. Instead of losing your place or manually copying each product, you’ll learn reliable methods to capture the full list—using browser extensions, built-in developer tools, and simple copy-paste tricks. No special skills are needed, just a desktop or laptop browser.
What You’ll Need
- A desktop or laptop computer (these methods are harder on mobile browsers).
- Google Chrome, Firefox, or Microsoft Edge (latest version recommended).
- An internet connection.
- Optional: A free account for some browser extensions (like Copy As Markdown).
Step-by-Step
Method 1: Use a Browser Extension (Easiest)
- Open your browser and go to the extension store: Chrome Web Store for Chrome/Edge, or Firefox Add-ons for Firefox.
- Search for an extension called “Copy As Markdown” or “Scroll Capture”. A popular option is “Copy As Markdown” (by yuheiy) which can copy selected content as markdown, including all items loaded by infinite scroll.
- Click “Add to Chrome” (or “Add to Firefox”) and confirm the installation.
- Go to the shopping website (e.g., Amazon.in, Flipkart) and search for a product.
- Scroll down the search results page until all the products you want are loaded. Keep scrolling until you see the end or you’ve loaded enough items.
- Select the area that contains the products. You can do this by clicking and dragging your mouse over the product grid, or using Ctrl+A (Cmd+A on Mac) to select everything, but that may capture too much.
- Right-click on the selected area and choose “Copy As Markdown” from the context menu.
- Paste the copied content into a text file, Google Docs, or a note-taking app. The products will appear as a list with titles and links.
Method 2: Use Browser Developer Tools (No Extra Software)
- Open the search results page on your shopping site.
- Scroll down to load all the products you want to save.
- Right-click anywhere on the page and select “Inspect” or “Inspect Element” (or press F12). This opens the Developer Tools panel.
- Click on the “Console” tab in the Developer Tools.
- Type the following JavaScript code into the console and press Enter:
copy(document.body.innerText);
This copies all the text from the page, including product names, prices, and descriptions. It won’t copy images or links, but it gives you a text list.
- Paste the copied text into a text file or document. You’ll see all the product names and details in plain text.
- If you want links, you can use a more advanced script, but for most users, copying the text is enough.
Method 3: Save the Full Page as HTML
- Scroll through the search results until you’ve loaded all the products you want.
- Right-click on the page and select “Save As…” (or press Ctrl+S / Cmd+S).
- Choose “Webpage, Complete” from the “Save as type” dropdown menu.
- Click “Save”. This saves the entire page, including images and styling, as a local file.
- Later, you can open this file in your browser to view the saved results. Note that some dynamic content may not load correctly if the site requires JavaScript.
Method 4: Manually Copy and Paste (For Short Lists)
- Scroll to load the products you want.
- Click and drag to select the product names and prices on the page.
- Press Ctrl+C (or Cmd+C) to copy.
- Paste into a spreadsheet (like Excel or Google Sheets) or a text document.
- Repeat for each batch of products if the list is long.
Common Mistakes
- Not scrolling enough: If you don’t scroll to the bottom, you’ll miss products. Infinite scroll only loads items as you scroll.
- Copying before the page finishes loading: Make sure the loading spinner has disappeared before copying.
- Using the extension on the wrong element: Some extensions copy the entire page, which includes navigation menus and ads. Select only the product grid area.
- Forgetting to include links: Copying plain text loses the product URLs. If you need links, use the developer tools method or a markdown extension.
Tips
- Use a spreadsheet: Paste the copied data into a spreadsheet to organize it better. You can sort by price, name, etc.
- Clear the site’s cache: If the page doesn’t load new products, clear your browser cache or try incognito mode.
- Check for a “View All” option: Some sites offer a page with all results instead of infinite scroll. Look for a link that says “View All” or “Show All” at the bottom of the results.
- Use a bookmarklet: You can create a bookmarklet with the JavaScript code from Method 2 to make copying easier. Just create a new bookmark and paste the code as the URL.
Troubleshooting
- Extension not working: Try reinstalling the extension or using a different one. Some extensions may not work on all sites.
- Console returns an error: Make sure you’re typing the code exactly as shown. If you get an error about “copy” not being defined, try using
document.body.innerTextand then manually copy the output. - Page keeps loading more items: Some sites load items continuously even after you stop scrolling. Use the browser’s “Stop loading” button (X) to halt the loading, then copy.
- Saved HTML shows no images: This can happen if the site uses lazy loading. Try opening the saved file while online, or use a different method.
Frequently Asked Questions
Can I do this on a mobile phone?
Yes, but it’s harder. On mobile, you can use the “Share” option and select “Copy” to copy text, but it may not capture all products. Using a desktop browser is recommended.
Will this work on all Indian shopping sites?
Most sites that use infinite scroll (Amazon.in, Flipkart, Myntra) will work with these methods. However, some sites may have anti-scraping measures that block the JavaScript console or extensions.
Does copying text include product prices?
Yes, the text copy method includes prices if they are visible on the page. The markdown extension also captures prices as text.
How do I get the product links?
Use the “Copy As Markdown” extension or the JavaScript console method with a script that extracts links. A simple script is: copy(Array.from(document.querySelectorAll('a')).map(a => a.href).join('\n')); but this may capture too many links.
Is it legal to save search results?
Yes, for personal use. Saving product information for your own reference is fine. However, copying large amounts of data for commercial purposes may violate the site’s terms of service.
Can I save the images too?
Yes, by saving the full page as HTML (Method 3), you’ll save images. However, they may not load if the site uses hotlink protection.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.