Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kkristof200/py_amazon_buddy
- Owner: kkristof200
- Created: 2020-07-02T17:15:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-24T10:50:39.000Z (over 1 year ago)
- Last Synced: 2024-10-03T21:09:05.867Z (about 1 month ago)
- Language: Python
- Size: 888 KB
- Stars: 7
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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, SortTypeab = 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()
~~~~