Skip to content

BRTZL/trendyol-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Trendyol Scraper 👋

Version Documentation License: MIT Twitter: mr_brtzl

Script that scraps given urls for price, description, images and more

Example Use

var trendyolDataScraper = require("trendyol-scraper")

trendyolDataScraper.getData("https://www.trendyol.com/pull-bear/erkek-siyah-grafiti-desenli-viskoz-gomlek-05474550-p-40932361").then((data) => console.log(data))

Example Data

{
  "type": "Product",
  "color": "Siyah",
  "url": "https://www.trendyol.com/pull-bear/erkek-siyah-grafiti-desenli-viskoz-gomlek-05474550-p-40932361",
  "name": "Erkek Siyah Grafiti Desenli Viskoz Gömlek 05474550",
  "image": [
    "https://cdn.dsmcdn.com/ty6/product/media/images/20200704/17/3822238/75894513/1/1_org_zoom.jpg",
    "https://cdn.dsmcdn.com/ty6/product/media/images/20200704/17/3822238/75894513/2/2_org_zoom.jpg",
    "https://cdn.dsmcdn.com/ty6/product/media/images/20200704/17/3822238/75894513/3/3_org_zoom.jpg",
    "https://cdn.dsmcdn.com/ty5/product/media/images/20200704/17/3822238/75894513/4/4_org_zoom.jpg",
    "https://cdn.dsmcdn.com/ty6/product/media/images/20200704/17/3822238/75894513/5/5_org_zoom.jpg",
    "https://cdn.dsmcdn.com/ty6/product/media/images/20200704/17/3822238/75894513/6/6_org_zoom.jpg",
    "https://cdn.dsmcdn.com/ty5/product/media/images/20200704/17/3822238/75894513/7/7_org_zoom.jpg"
  ],
  "description": "Trendyol.com sayesinde Pull & Bear ürününe çok özel indirimlerle sahip olabilecek ve alışveriş alışkanlıklarınızı değiştireceksiniz.",
  "brand": {
    "type": "Thing",
    "name": "Pull & Bear"
  },
  "offers": {
    "type": "AggregateOffer",
    "lowPrice": "119.95",
    "priceCurrency": "TRY",
    "offerCount": "5",
    "offers": [
      {
        "type": "Offer",
        "seller": {
          "type": "Organization",
          "name": "Pull&Bear"
        },
        "price": "119.95",
        "priceCurrency": "TRY",
        "itemCondition": "NewCondition",
        "availability": "InStock",
        "itemOffered": {
          "type": "Product",
          "sku": "72483079"
        }
      },
      {
        "type": "Offer",
        "seller": {
          "type": "Organization",
          "name": "Pull&Bear"
        },
        "price": "119.95",
        "priceCurrency": "TRY",
        "itemCondition": "NewCondition",
        "availability": "InStock",
        "itemOffered": {
          "type": "Product",
          "sku": "72483081"
        }
      },
      {
        "type": "Offer",
        "seller": {
          "type": "Organization",
          "name": "Pull&Bear"
        },
        "price": "119.95",
        "priceCurrency": "TRY",
        "itemCondition": "NewCondition",
        "availability": "InStock",
        "itemOffered": {
          "type": "Product",
          "sku": "72483078"
        }
      },
      {
        "type": "Offer",
        "seller": {
          "type": "Organization",
          "name": "Pull&Bear"
        },
        "price": "119.95",
        "priceCurrency": "TRY",
        "itemCondition": "NewCondition",
        "availability": "InStock",
        "itemOffered": {
          "type": "Product",
          "sku": "72483080"
        }
      },
      {
        "type": "Offer",
        "seller": {
          "type": "Organization",
          "name": "Pull&Bear"
        },
        "price": "119.95",
        "priceCurrency": "TRY",
        "itemCondition": "NewCondition",
        "availability": "InStock",
        "itemOffered": {
          "type": "Product",
          "sku": "72483077"
        }
      }
    ]
  }
}

Install

npm install

Usage

npm run start

Author

👤 Bartu OZEL

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Bartu OZEL.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published