Skip to main content

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.

Metadata

Release files for amazonpy 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amazonpy 2.0.0
File Size Uploaded
amazonpy-2.0.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amazonpy 2.0.0
File Interpreter ABI Platform
amazonpy-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / amazonpy-2.0.0.tar.gz

Download URL amazonpy-2.0.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c4df4749b46a00cf48cbbded74434112749349ebbbff8cf2749a42012a116d03
BLAKE2b-256 checksum
How to use checksums
20d43c5009691e20d3961e9e9d86fecbd37dcc55c9e4a18f8ec3c201d0d1c379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.0

Release files / amazonpy-2.0.0-py3-none-any.whl

Download URL amazonpy-2.0.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1855e625b10ac41535eddb1d2bcacca609ef6b75dafe76c878493e69e17a14c
BLAKE2b-256 checksum
How to use checksums
f0dfcfe5c8ec1c13b5ddf13397ad715e7874f6ede5bd049b32a5ad85102ec723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page