Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kkristof200/py_amazon_buddy

amazon_buddy
https://github.com/kkristof200/py_amazon_buddy

Last synced: 10 days ago
JSON representation

amazon_buddy

Awesome Lists containing this project

README

        

# amazon_buddy

![python_version](https://img.shields.io/static/v1?label=Python&message=3.5%20|%203.6%20|%203.7&color=blue) [![PyPI downloads/month](https://img.shields.io/pypi/dm/amazon_buddy?logo=pypi&logoColor=white)](https://pypi.python.org/pypi/amazon_buddy)

## Description

Amazon scraper.

## Install

~~~~bash
pip install amazon_buddy
# or
pip3 install amazon_buddy
~~~~

## Usage

~~~~python
from amazon_buddy import Product, AmazonBuddy, Category, SortType

ab = AmazonBuddy(debug=True, user_agent='ADD_USER_AGENT')

# # products = ab.search_products(
# # 'face wash',
# # sort_type=SortType.PRICE_HIGH_TO_LOW,
# # min_price=0,
# # category=Category.BEAUTY_AND_PERSONAL_CARE,
# # max_results=20
# # )
# # print(len(products))
asin = 'B07RZV9LB7'

# # reviews = ab.get_reviews(asin=asin)
# # print(reviews)

ab.get_product_details(asin).save('{}.json'.format(asin))
# ab.get_product_details(asin).jsonprint()

# Product.load('/Users/kristofk/github/py_amazon_buddy/B0758GYJK2.json').jsonprint()
~~~~