https://github.com/moreati/tescolabsapi
An unofficial Python client for querying products with Tesco Labs API
https://github.com/moreati/tescolabsapi
Last synced: 3 months ago
JSON representation
An unofficial Python client for querying products with Tesco Labs API
- Host: GitHub
- URL: https://github.com/moreati/tescolabsapi
- Owner: moreati
- License: apache-2.0
- Created: 2015-02-26T13:53:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-26T15:17:20.000Z (over 10 years ago)
- Last Synced: 2025-07-15T09:41:39.911Z (3 months ago)
- Language: Python
- Size: 137 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tescolabsapi
An unofficial Python client for querying products with Tesco Labs API.Work in progress - no error handling, API not stable.
Example::
>>> import tescolabsapi
>>> t = tescolabsapi.TescoLabsApi(tescolabsapi.API_URL,
... '',
... '')
>>> r = t.productsearch('cornflakes')
>>> print r.content
{
"StatusCode": 0,
"StatusInfo": "Command Processed OK",
"PageNumber": 1,
"TotalPageCount": 2,
"TotalProductCount": 22,
"PageProductCount": 20,
"Products":
[
{
"BaseProductId": "50342861",
"EANBarcode": "5000127013094",
"CheaperAlternativeProductId": "",
"HealthierAlternativeProductId": "",
"ImagePath": "http://img.tesco.com/Groceries/pi/094/5000127013094/IDShot_90x90.jpg",
"MaximumPurchaseQuantity": 99,
"Name": "Kelloggs Cornflakes 750G",
"OfferPromotion": "",
"OfferValidity": "",
"OfferLabelImagePath": "",
"ShelfCategory": "",
"ShelfCategoryName": "",
"Price": 1.98,
"PriceDescription": "£1.98 each",
"ProductId": "254852397",
"ProductType": "QuantityOnlyProduct",
"UnitPrice": 0.264,
"UnitType": "100g"
},
...
]
}To register for a developer key and an application key vist https://secure.techfortesco.com/tescoapiweb/Login.aspx. For documentation of the underlying API visit https://secure.techfortesco.com/tescoapiweb/wiki/index.html.
Neither this project nor it's author are associated with Tesco PLC. YMMV