Extract data from food products
Project description
Ifood
To install
pip install ifood
To import the library
from ifood import Ifood
Defining the zip code
app = Ifood('59082311')
or address
app = Ifood('rua+buzius+47+brazil')
Creating object to search address
print(app.searchAddress())
All functions of address
print(app.city())
print(app.state())
print(app.country())
print(app.streetName())
print(app.postalCode())
print(app.latitude())
print(app.longitude())
Creating object to search product
app.searchItems('energetico+reign')
All functions of product
print(app.listItems())
print(app.listItems()[0]['id'])
print(app.listItems()[0]['name'])
print(app.listItems()[0]['category'])
print(app.listItems()[0]['price'])
print(app.listItems()[0]['merchant'])
print(app.listItems()[0]['slug'])
print(app.listItems()[0]['distance'])
print(app.listItems()[0]['deliveryTime'])
print(app.listItems()[0]['deliveryValue'])
print(app.listItems()[0]['mainCategoryName'])
Links
See my GitHub.
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
ifood-0.0.1.tar.gz
(3.0 kB
view details)
Built Distribution
ifood-0.0.1-py3-none-any.whl
(3.3 kB
view details)
File details
Details for the file ifood-0.0.1.tar.gz
.
File metadata
- Download URL: ifood-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc6dcce96d99edad6542854e9b5a18164b9b1cea72d9221bfef99ae05d770f66 |
|
MD5 | dd63742fd57d841e9befeb6e62b52c3f |
|
BLAKE2b-256 | e1fe7a8797ae66df9ac4804999c3976d5702e1bc8b9355f7321f24fbad196505 |
File details
Details for the file ifood-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ifood-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29239426c2c096531a3ccd31e4fcc74684128adffd17ce67e182b51ac6faff10 |
|
MD5 | 0b1ea8c58543962ffec7e99f4eda3f1a |
|
BLAKE2b-256 | f1f95d2a7dde9518d0bf60dbc88cb40b4d9a1c3d72f64b84ae19fa4ca35fae9e |