Skip to main content

amazon scraping library.

Project description

amazonpy

PyPi Supported python versions: 3.x GitHub Donate

Amazon scraping library

Description

Amazon(JP)の商品情報を取得するためのスクレイピングライブラリ

Installation

pip install amazonpy

Upgrade

pip install --upgrade amazonpy

How to use

from amazonpy import Amazon

amazon = Amazon()

# URLから製品情報を取得する。
product = amazon.get_product_by_url("https://www.amazon.co.jp/dp/B07T17NSJH/")

print(product.id) # 商品IDを取得する。
# B07T17NSJH

print(product.title) # タイトルを取得する。
# [コーチ] COACH バッグ ショルダーバッグ 斜めがけ MAE CROSSBODY レザー F34823 アウトレット [並行輸入品]

print(product.description) # 説明を取得する。
# ■品 番:34823 IMTAU ■サイズ:約高さ23x幅25xマチ5cm ショルダー約103-119cm(取り外し不可)  ■重 さ:約400g ■仕 様:開閉 :ファスナー式 内側 :ポケット1 外側 :ポケット1 ■素 材:レザー ■カラー:Taupe 金具ゴールド ■付 属:箱なし、保存袋なし ■バッグ内の商品はサンプル品につき、付属しておりません。

print(product.price) # 販売価格を取得する。
# 17570

print(product.another_type) # 色などの同じ製品の違うタイプの製品IDを取得する。
['B08TW5VZX3', 'B07PZJYLM7', 'B07ZYFV9ZW', 'B0854LBQG2']

Donation

Please donate me.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amazonpy-2.0.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

amazonpy-2.0.0-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page