https://github.com/hudsonbrendon/nintendo-eshop-prices
A wrapper python for eshop-prices.com
https://github.com/hudsonbrendon/nintendo-eshop-prices
discounts eshop nintendo nintendo-switch python
Last synced: 3 days ago
JSON representation
A wrapper python for eshop-prices.com
- Host: GitHub
- URL: https://github.com/hudsonbrendon/nintendo-eshop-prices
- Owner: hudsonbrendon
- Created: 2023-03-29T06:44:06.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-23T08:43:56.000Z (6 months ago)
- Last Synced: 2025-06-06T07:04:32.106Z (16 days ago)
- Topics: discounts, eshop, nintendo, nintendo-switch, python
- Language: Python
- Homepage:
- Size: 101 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nintendo Eshop Prices
A wrapper python for [eshop-prices.com](https://eshop-prices.com/)
# 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 EshopPriceseshop = EshopPrices(currency="BRL")
eshop.search("Zelda")
```## Get prices from url
```python
from eshop_prices import EshopPriceseshop = EshopPrices(currency="BRL")
eshop.get_prices_from_url("/games/164-mario-kart-8-deluxe/")
```## Get prices
```python
from eshop_prices import EshopPriceseshop = EshopPrices(currency="BRL")
eshop.get_prices("Zelda")
```## Get top discounts
```python
from eshop_prices import EshopPriceseshop = EshopPrices(currency="BRL")
eshop.get_top_discounts()
```## Get available currencies
```python
from eshop_prices import EshopPriceseshop = EshopPrices(currency="BRL")
eshop.get_available_currencies()
```# Dependencies
- [Python >=3.10](https://www.python.org/downloads/release/python-3100/)
# License
[MIT](http://en.wikipedia.org/wiki/MIT_License)