Skip to content

TheLovinator1/webhallen.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webhallen.py

A Python wrapper for the Webhallen API

Installation

pip install webhallen

Usage

from webhallen import Webhallen

# Initialize the client
webhallen = Webhallen()

# Get a product by ID
try:
    product = webhallen.get_product(1234)
    print(product)
except ProductNotFoundError:
    print("Product not found")

# Search for products
products = webhallen.search("RTX 3080", limit=5)
for product in products:
    print(product['name'])

Features

  • Retrieve product details by ID
  • Search for products
  • Error handling for API interactions

Requirements

  • Python 3.8+
  • httpx

About

A Python wrapper for the Webhallen API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages