Git Product home page Git Product logo

amazon-scraper's Introduction

amazon-scraper

Serverless Amazon India Scraper made with Cloudflare worker

Features

  • Product Page
  • Search Page
  • No Limitation
  • Unlimited Requests

Api Endpoint

🗺 Search (GET)

$ Request

https://{yourapp}.workers.dev/search/{query}

## Ex.
https://amazon-scraper.tprojects.workers.dev/search/laptop

$ Response

{
  "status": true,
  "total_result": 16,
  "query": "laptop",
  "fetch_from": "https://www.amazon.in/s?k=laptop",
  "result": [
    {
      "name": "Lenovo IdeaPad Slim 3 Intel Celeron N4020 15.6-inch HD Thin and Light Laptop (4GB/256GB SSD/Windows 10/Platinum Grey/1.7Kg), 81WQ003LIN",
      "image": "https://m.media-amazon.com/images/I/61Dw5Z8LzJL._AC_UY218_.jpg",
      "price": "₹23,990",
      "original_price": "₹30,690",
      "product_link": "https://www.amazon.in/Lenovo-IdeaPad-15-6-inch-Platinum-81WQ003LIN/dp/B08TQQ4ZHM/ref=sr_1_3",
      "query_url": "https://amazon-scraper.tprojects.workers.dev/product/Lenovo-IdeaPad-15-6-inch-Platinum-81WQ003LIN/dp/B08TQQ4ZHM/ref=sr_1_3"
    },
    ... more ...
  ]
}

🗺 Product (GET)

$ Request

https://{yourapp}.workers.dev/product/{slug}

## Ex.
https://amazon-scraper.tprojects.workers.dev/product/Lenovo-IdeaPad-15-6-inch-Platinum-81WQ003LIN/dp/B08TQQ4ZHM

$ Response

{
  "status": true,
  "query": "Lenovo-IdeaPad-15-6-inch-Platinum-81WQ003LIN/dp/B08TQQ4ZHM/ref=sr_1_3",
  "fetch_from": "https://www.amazon.in/Lenovo-IdeaPad-15-6-inch-Platinum-81WQ003LIN/dp/B08TQQ4ZHM/ref=sr_1_3",
  "product_detail": {
    "name": "Lenovo IdeaPad Slim 3 Intel Celeron N4020 15.6-inch HD Thin and Light Laptop (4GB/256GB SSD/Windows 10/Platinum Grey/1.7Kg), 81WQ003LIN",
    "image": "https://images-na.ssl-images-amazon.com/images/I/61Dw5Z8LzJL._SL1000_.jpg",
    "price": "₹ 23,990.00",
    "original_price": " ₹ 30,690.00",
    "features": [
      "Processor: Intel Celeron N4020 | Speed: 1.1 GHz (Base) - 2.8 GHz (Max) | 2 Cores | 4MB Cache",
      "OS: Pre-Loaded Windows 10 Home with Lifetime Validity",
      "Memory and Storage: 4GB RAM DDR4 | 256 GB SSD",
      "Display: 15.6\" HD (1366x768) | Brightness: 220 nits | Anti-Glare",
      "Design: 1.99 cm Thin and 1.7 kg Light | 2-Sided Narrow Bezel",
      "Battery Life: 5 Hours | 35Wh Battery",
      "Camera (Built in): HD 720p Camera with Privacy Shutter | Integrated Dual Array Microphone"
    ],
    "product_link": "https://www.amazon.in/Lenovo-IdeaPad-15-6-inch-Platinum-81WQ003LIN/dp/B08TQQ4ZHM/ref=sr_1_3"
  }
}

Deploy

Deploy to Cloudflare Workers

Development

  • Install Wrangler

  • Login with your cloudflare account

  • Clone this repository

  • Open wrangler.toml and put your account_id

  • Run This command

    wrangler dev
    

License & Copyright :

Connect :

amazon-scraper's People

Contributors

tuhinpal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.