Metadata-Version: 2.4
Name: discount-nepal
Version: 0.1.0
Summary: Web app that lists discounted trekking gear from Nepali outdoor stores (Dolpo, Sonam Gear).
Author: Discount Nepal
License-Expression: MIT
Keywords: scraper,discounts,trekking,nepal,ecommerce
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Office/Business
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31
Requires-Dist: beautifulsoup4>=4.12
Dynamic: license-file

# 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

```bash
pip install discount-nepal
```

## Run

```bash
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 page
- `GET /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
