Discount Nepal
A small web app that lists discounted trekking and outdoor gear from Nepali stores. It scrapes Dolpo and Sonam Gear on demand and serves the results through a JSON API, so the page always shows current prices.
Install
pip install discount-nepal
Run
discount-nepal
# or: discount-nepal --host 0.0.0.0 --port 8000
Then open http://127.0.0.1:8000.
How it works
GET /- the product pageGET /api/products- cached products (120s TTL)GET /api/products?refresh=1- forces a fresh scrape
Dolpo and Sonam Gear are scraped concurrently, so a full refresh takes about 5-6 seconds. The cache is warmed in the background at startup.
Adding another store
Add a scraper under discount_nepal/scrapers/ exposing a class with
scrape() and get_results(), then include it in
discount_nepal.app.scrape_products().
License
MIT
Metadata
Release files for discount-nepal 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| discount_nepal-0.1.0.tar.gz | 10.1 kB | Without provenance | Details for discount_nepal-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| discount_nepal-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for discount_nepal-0.1.0-py3-none-any.whl |
Total release size: 22.3 kB
Release files / discount_nepal-0.1.0.tar.gz
| Download URL | discount_nepal-0.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46c92ac07da505ca14bdf3bbc8cfbeb3d0192f61a070d827df039bce7baac29c
|
|
BLAKE2b-256 checksum How to use checksums |
1e321e361b01ed5941a43f1bd36e9290875869c71a913cd8cb02d34b9f61ec6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / discount_nepal-0.1.0-py3-none-any.whl
| Download URL | discount_nepal-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3a1d124721c019b52da231280c1ff304878c606911445aa1fed0adcc646151e
|
|
BLAKE2b-256 checksum How to use checksums |
f63d75271d0403ace368d7267aeb4b2c144cc86f00d0af6ab4dfb8b8be5034bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for discount-nepal 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.