eshop-prices-0.1.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | eshop-prices-0.1.0 |
| نام | eshop-prices |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hudson Brendon |
| ایمیل نویسنده | contato.hudsonbrendon@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/eshop-prices/ |
| مجوز | - |
# Nintendo Eshop Prices
# Available resources
- [x] Search
- [x] Get prices from URL
- [x] Get prices
- [x] Get top discounts
- [x] Get availables currencies
# Install
```bash
$ pip install eshop-prices
```
# contribute
Clone the repository project:
```bash
$ git clone https://github.com/hudsonbrendon/eshop-prices.git
```
Make sure [Poetry](https://python-poetry.org/) is installed, otherwise:
```bash
$ pip install -U poetry
```
Install the dependencies:
```bash
$ poetry install
```
To run the tests:
```bash
$ pytest
```
# Usage
## Search
```python
from eshop_prices import EshopPrices
eshop = EshopPrices(currency="BRL")
eshop.search("Zelda")
```
## Get prices from url
```python
from eshop_prices import EshopPrices
eshop = EshopPrices(currency="BRL")
eshop.get_prices_from_url("/games/164-mario-kart-8-deluxe/")
```
## Get prices
```python
from eshop_prices import EshopPrices
eshop = EshopPrices(currency="BRL")
eshop.get_prices("Zelda")
```
## Get top discounts
```python
from eshop_prices import EshopPrices
eshop = EshopPrices(currency="BRL")
eshop.get_top_discounts()
```
## Get available currencies
```python
from eshop_prices import EshopPrices
eshop = EshopPrices(currency="BRL")
eshop.get_available_currencies()
```
# Dependencies
- [Python >=3.8](https://www.python.org/downloads/release/python-388/)
# License
[MIT](http://en.wikipedia.org/wiki/MIT_License)
نیازمندی
| مقدار | نام |
|---|---|
| >=4.9.2,<5.0.0 | lxml |
| >=2.1.7,<3.0.0 | cchardet |
| >=2.28.2,<3.0.0 | requests |
| >=7.2.2,<8.0.0 | pytest |
| >=4.12.0,<5.0.0 | beautifulsoup4 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl eshop-prices-0.1.0:
pip install eshop-prices-0.1.0.whl
نصب پکیج tar.gz eshop-prices-0.1.0:
pip install eshop-prices-0.1.0.tar.gz