Skip to content

A Amazon webscraper using the power of nextjs , webhooks, brightdata and firebase

Notifications You must be signed in to change notification settings

Sam8778/Tedtex-Webscraper

Repository files navigation

Hi there 👋 I'm [Sam George]

Software Engineer

Sam George

Tedtex-Webscraper allows users to easily scrape publicly available data from any page on Amazon, such as reviews, pricing, product information, and more. If you're interested in testing out this powerful tool, you can check out the website. Tedtex leverages the power of bright data to scrape data.

Programming Languages Used🌐

ReactJs Nextjs Tailwind Javascript typescript

Tools 🛠️

brightdata mysql firebase vscode

How to run the Code 🤷

  • Clone the Project using Git Clone
  • Change values in .env file
  • Create an account in Bright Data and put the automation script in.
  • Create an account in Firebase and connect it.
  • After all the env values are updated launch the project with the npm run dev command.

BrightData code example 🧑‍💻

In the code example below, we make a request to retrieve the Amazon product page for any product.

settings({ country: input.country || "us" });
navigate(`https://www.amazon.com/s?k=${input.search}`);
let max_page = parse().max_page;
let final_page = Math.min(input.pages || 0, max_page) || 1;
for (let i = 1; i <= final_page; i++) {
  let url = `https://www.amazon.com/s?k=${input.search}`;
  if (i > 1) url += `&page=${i}`;
  next_collector({ url, country: input.country, search: input.search });
}

Can modify this script to run scraper on other websites

Github Stats

Sam George GitHub Stats

Github Repos

ReadMe Card

🤝🏻 Connect with Me

Website LinkedIn Email

⭐️ From @Sam George

About

A Amazon webscraper using the power of nextjs , webhooks, brightdata and firebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published