A Mercadona interface for Python to track product prices, amounts, and more.
Project description
🛍️ mercapy
A Mercadona interface for Python to track product prices, amounts, and more.
🔧 How to use it
First of all, install the package using:
pip install mercapy
By initializing the mercadona class, you can search products, recommendations, and new arrivals:
from mercapy import Mercadona
mercadona = Mercadona()
mercadona.search("galletas")
mercadona.get_new_arrivals()
mercadona.get_home_recommendations()
Each product has statistics such as:
from mercapy import Product
# Find product by ID
prod = Product("12345")
prod.name # Beer
prod.unit_price # 1.25€
prod.previos_price # 1.95€
prod.is_discounted # True
prod.bulk_price # 7.5€
prod.is_pack # True
prod.weight # 0.5kg
prod.age_check # True
prod.alcohol_by_volume # 3.2%
prod.iva # 21%
You can also interact with product photos:
from mercapy import Product
# Find product by ID
prod = Product("12345")
prod.images[0].save("product.png", width=1920, height=1080)
More docs coming soon...
🙋♂️ You may also like...
- 📷📱 pygramcore - A simple-to-use Instagram interface for Python using Selenium.
- 🧑💼My Portfolio - Check out my front-end and SEO skills on my Portfolio!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mercapy-1.0.3.tar.gz.
File metadata
- Download URL: mercapy-1.0.3.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c666920cc20537f85204b61ff1c8656ce49014e8e0c854399a199f849f92524e
|
|
| MD5 |
59a04803d9b3f77a522723013a81aad3
|
|
| BLAKE2b-256 |
134726cacf818b8e60c53a7038719a4ed8685990d58b64ecbc008f9502339ec7
|
File details
Details for the file mercapy-1.0.3-py3-none-any.whl.
File metadata
- Download URL: mercapy-1.0.3-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
085bcfcd576b1eb4c5656cfdd81cd5efc2dc992e215e789f3bf38a58a56c7d11
|
|
| MD5 |
a6035f7f4241d91eb7d4ca820ed799d6
|
|
| BLAKE2b-256 |
fe7f21ff7ada5ad0216b2dd0bfae2dc0d491fb2393ffd0ed1cecc400122a3288
|