Skip to content

bright-jp/wayfair-price-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wayfair Price Tracker

Bright Data Wayfair Price Tracker Python

Bright Insights Price Tracker

リアルタイムのWayfair価格トラッキング - オンラインのホームグッズおよび家具小売業界のリーディング企業です。開始方法は2つあります: フルマネージドのインテリジェンスプラットフォーム、または独自のpipelineを構築するためのセルフサービスAPIです。


Option 1: Bright Insights - AI搭載価格トラッキング(推奨)

Bright Insights は、Bright Dataのフルマネージドなリテールインテリジェンスプラットフォームです。scraperの構築も、インフラの保守も不要で、構造化され分析可能な価格データを、ダッシュボード、data feed、またはBIツールにそのまま配信できます。

チームがBright Insightsを選ぶ理由:

  • 🚀 セットアップ不要 - すぐに使えるダッシュボードとdata feedで数分で本番稼働
  • 🤖 AI搭載の推奨機能 - 会話型AIアシスタントが数百万のデータポイントを即座に実用的なインサイトへ変換
  • リアルタイム監視 - 1時間ごとから日次までの更新頻度と即時アラート(email、Slack、webhook)
  • 🌍 無制限のスケール - あらゆるWebサイト、あらゆる地域、あらゆる更新頻度に対応
  • 🔗 プラグアンドプレイの連携 - AWS、GCP、Databricks、Snowflake など
  • 🛡️ フルマネージド - Bright Dataがschema変更、サイト更新、データ品質を自動で処理

主なユースケース:

  • ✅ すべての製品カテゴリにわたってWayfairの価格を監視
  • 在庫レベルと在庫状況を追跡(リアルタイム)
  • 価格アラートを設定して注目商品の変動を把握
  • ✅ MAPポリシー準拠を監視し、価格違反を検出
  • ✅ 競合のプロモーションと販促動向を追跡
  • ✅ クリーンで正規化されたデータを、動的価格設定アルゴリズムやAIモデルに直接投入

月額$250から - お客様向け見積もりを取得 →


Option 2: Web Scraper APIによるセルフサービス

独自のpipelineを構築したいですか? Bright DataのWeb Scraper APIなら、proxyやscrapingインフラを管理することなく、Wayfairの商品データ(価格、在庫状況、レビューなど)にprogrammaticにアクセスできます。

前提条件

セットアップ

  1. このrepositoryをclone

    git clone https://github.com/bright-jp/wayfair-price-tracker.git
    cd wayfair-price-tracker
  2. 依存関係をinstall

    pip install -r requirements.txt
  3. 認証情報を設定

    .env.example.env にコピーし、値を入力します:

    cp .env.example .env
    BRIGHTDATA_API_TOKEN=your_api_token_here
    BRIGHTDATA_DATASET_ID=your_dataset_id_here

    Web Scraper IDの確認方法 Bright Data Control Panel にログインし、Web Scrapers に移動して、 「Wayfair」を検索し、Web Scraper ID(形式: gd_xxxxxxxxxxxx)をコピーします。


使用方法

1. URLで特定の商品を追跡

Wayfairの商品URLのリストを渡して、構造化された価格データを取得します:

from price_tracker import track_prices

urls = [
    "https://www.wayfair.com/furniture/pdp/sample-product-WRLO1234.html",
    # Add more product URLs here
]

results = track_prices(urls)
for item in results:
    print(f"{item.get('title')} - {item.get('final_price', item.get('price'))} {item.get('currency', '')}")

または直接実行:

python price_tracker.py

2. キーワードで商品を検索

キーワード検索に一致する商品を見つけます:

from price_tracker import discover_by_keyword

results = discover_by_keyword("laptop", limit=50)

3. カテゴリURLで商品を閲覧

Wayfairのカテゴリページからすべての商品を収集します:

from price_tracker import discover_by_category

results = discover_by_category(
    "https://wayfair.com/category/example",
    limit=100,
)

出力フィールド

各結果レコードには次のフィールドが含まれます:

Field Description
url 商品ページURL
title 商品名 / タイトル
brand ブランドまたはメーカー
initial_price 元の価格 / 定価
final_price 現在の販売価格
currency 通貨コード(例: USD、EUR)
discount 割引額または割引率
in_stock 商品が購入可能かどうか
rating 平均星評価
reviews_count レビュー総数
seller_name 販売者名
images 商品画像URLの配列
description 商品説明テキスト
timestamp データ収集タイムスタンプ

サンプル出力

[
  {
    "url": "https://www.wayfair.com/furniture/pdp/sample-product-WRLO1234.html",
    "title": "Example Product Name",
    "brand": "Example Brand",
    "initial_price": 59.99,
    "final_price": 44.99,
    "currency": "USD",
    "discount": "25%",
    "in_stock": true,
    "rating": 4.5,
    "reviews_count": 1234,
    "images": ["https://wayfair.com/images/product1.jpg"],
    "description": "Product description text...",
    "timestamp": "2025-01-15T10:30:00Z"
  }
]

高度なオプション

trigger_collection() 関数は、データ収集を制御するためのオプションパラメータを受け付けます:

Parameter Type Default Description
limit integer - 返されるレコードの最大数
include_errors boolean true 結果にエラーレポートを含める
notify string (URL) - snapshotの準備完了時に呼び出されるWebhook URL
format string json 出力形式: jsoncsv、または ndjson

オプション付きの例:

from price_tracker import trigger_collection, get_results

inputs = [{"url": "https://www.wayfair.com/furniture/pdp/sample-product-WRLO1234.html"}]
snapshot_id = trigger_collection(inputs, limit=200, notify="https://your-webhook.com/hook")
results = get_results(snapshot_id)

リソース


Bright Data により構築 - 業界をリードするWebデータプラットフォーム。

About

Wayfairの価格を追跡 — Bright InsightsによるAI活用、またはBright DataのWeb Scraper APIによるセルフサービス

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages