- The AI for E-Commerce Newsletter
- Posts
- 🗞️ Build an Amazon Scraper with AI💥💪
🗞️ Build an Amazon Scraper with AI💥💪
AI for eCommerce Newsletter - 20
Welcome to the 20th edition of the AI for E-Commerce newsletter, your trusted resource for actionable AI strategies in eCommerce, especially on Amazon! OMG, we just crossed 2250 subscribers! That’s a growth of 200 new subscribers last week. Let’s go!💥🔥
Let’s build an Amazon Page Scraper in 10 Minutes!
This week, I’m excited to share something that I think will be super useful for all of us working with Amazon—a hands-on guide to creating an Amazon Page Scraper in just 10 minutes using Claude.AI. You don't need to be a coding wizard for this; it's all about leveraging the power of AI to make life easier. In fact you need ZERO coding experience. Let’s get right into how I did it and how you can do it too.
The Amazon Page Scraper is a nifty little tool I built using Claude.AI that helps you grab ASINs from any Amazon product page like so.
Claude.AI helped me put this together, and the best part is, it’s ridiculously simple. This was my original prompt:
Claude decided that it was better for me to get a “bookmarklet” instead. A bookmarklet is a piece of code that sits within your bookmark. Each time you click on the bookmark, it executes your command. To set this this up you need to go Chrome, Add Page
Then copy the code that Claude.AI gives you and paste it in the field called URL.
Now each time you are on any Amazon page and you click on it, it scrapes the current Amazon page for ASINs. Then, it displays the ASINs in a nice, clean list, all converted into clickable Amazon links. It’s the kind of thing that makes you wonder why you ever manually copied and pasted ASINs in the first place.
This is a floating box with the result set. I can copy the ASINs and close the box away.
That’s one of the things I love about working with Claude—it’s almost like having a personal developer that gets your instructions without needing endless clarifications. Also, Claude is more likely to assume that you have zero to low programming abilities.
But here’s where it gets even better: Claude.AI can add more functionality if you want. I extended the tool to extract additional data like price.
You can also ask it to scrape more details like review count, and ratings. You can get all this information alongside the ASINs, which is super useful if you’re analyzing products for a campaign or need more detailed insights without jumping between pages.
Why Claude.AI?
I know some of you are wondering why Claude.AI is the right tool for this. For me, it was perfect because it excels at no-code app development. I don’t have a programming background, but Claude produced the code I needed on the first try, and it was easy to follow. Claude also adapts quickly to feedback—if I needed something changed, it could pivot easily from complex solutions to simple ones. It’s the kind of help you want when you need something up and running without getting into the weeds of coding.
Another great thing about Claude.AI is its accessibility. There’s a free tier with a certain number of requests per day, which is great if you’re just experimenting. For more frequent use, you can get unlimited access for $20 a month. Considering how much time it saves, I think it’s a fantastic deal for anyone serious about automation.
This Amazon Page Scraper is just one example of what’s possible. Imagine using it to scrape other public websites for all kinds of information that will serve you. Tools like this save time and make processes that used to be manual almost effortless. And with Claude.AI, you can tweak and extend the features as you go, making sure it suits your workflow perfectly.
The Prompt
You must be wondering what prompt to use to replicate the process at your end. Since I had a few back and forth conversations till I perfected the code, I asked it to generate back the perfect prompt that I could use should I need to build this again or sent the code to another LLM. So here it is…
Create a JavaScript bookmarklet that:
1. Extracts Amazon ASINs (10-character product IDs) from the current page
2. Only matches ASINs that appear in the context of:
- /dp/[ASIN]
- asin":"[ASIN]
- asin=[ASIN]
3. Converts found ASINs into Amazon URLs in format: https://amazon.com/dp/[ASIN]
4. Creates a simple floating div in the top-right corner containing:
- A text area showing the URLs (one per line)
- A Copy button that copies all URLs to clipboard
- A Close button that removes the div
5. Shows an alert if no ASINs are found
6. Must be a single line of code starting with 'javascript:'
7. Keep the code minimal and avoid complex styling
The goal is to create the simplest possible working bookmarklet that reliably extracts ASINs from Amazon pages.
And in case you are feeling super lazy and don’t want to run this prompt and just want to pick up the code, go here. Enjoy!
We have ChatGPT Updates!
ChatGPT now has some amount of Autocomplete and is beginning to look more and more like a search engine.
It also has some cool engagement starters like Create image, Make a plan, Get advice etc.
I also love the Sources section that opens up in the right pane and updates automatically as you ask more specific questions.
Another thing I love is the ability to zoom into maps right within the Chat interface:
Love where this is all headed!
This is the highlight of the week for nerds—Sam Altman says that the path to AGI is now clear.
In his talk on building the future, he delves into the immense potential of Artificial General Intelligence (AGI) and the "age of intelligence." Altman believes that AGI, or even “super intelligence”, could be achieved within thousands of days, transforming industries and addressing critical challenges like climate change and sustainable energy.
He emphasizes how scaling and advancing AI models rapidly will open new frontiers, creating an "age of abundance" where human and robotic collaboration lead to groundbreaking discoveries and a new standard of living.
As he looks forward, he sees not only the technical achievement of AGI but also its potential to bring about real-world progress that benefits everyone—creating a future where technology isn’t just revolutionary but also universally beneficial.
Who else talks about AGI?
Ray Kurzweil, a prominent futurist, has predicted that Artificial General Intelligence (AGI)—AI capable of understanding, learning, and applying knowledge across various tasks as flexibly as a human—will be achieved by 2029. He envisions this development occurring autonomously, without the need for human supervision. Kurzweil's perspective is that AGI will emerge through the exponential growth of computational power and advancements in machine learning, leading to machines that can independently perform tasks across diverse domains.
For the Thought Leader section this week, we asked our friend Vincenzo Toscano from Ecomcy. He recently shared a phenomenal hack at the AI Hack Webinar. His team uses GPTs for each brand they manage at their agency. This means they are constantly training their GPTs with data and information about each brand, essentially "chatting" with their data.
Here is a sample GPT that he uses—try it out to see the possibilities: https://chatgpt.com/g/g-ss4L4aQ10-nature-made-brand-hub. And here’s what he had to say:
“Brands can leverage custom ChatGPTs to scale efficiently on Amazon by automating and optimizing essential operations. These AI tools streamline daily tasks such as order fulfillment, inventory management, and compliance tracking, ensuring that operations run smoothly.
In addition to operational support, custom GPTs generate high-quality, SEO-optimized content for product listings and marketing materials, all tailored to reflect the brand's unique voice. By analyzing sales data, market trends, and customer feedback, these tools provide actionable insights that inform data-driven decision-making and demand forecasting.
Custom GPTs also enhance customer engagement by delivering personalized, timely responses that foster a consistent and positive brand experience. Furthermore, AI assists in crafting effective marketing strategies, from competitor analysis to keyword optimization, enhancing the brand’s visibility and competitiveness.
Lastly, these AI-driven solutions facilitate team collaboration by generating detailed reports and presentations, which help teams stay aligned and informed. This comprehensive AI approach enables brands to scale effectively and maintain an edge in a fast-paced marketplace."
We hope you liked this edition of the AI for E-Commerce Newsletter! Hit reply and let us know what you think! Thank you for being a subscriber! Know anyone who might be interested to receive this newsletter? Ask them to subscribe here: www.ppc-ninja.com/subscribe. Once you share this with more than 10 people, you will receive a BONUS đź’Ąđź’Ş!!
Reply