Extract data from ifood 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.2.tar.gz
(3.0 kB
view details)
Built Distribution
ifood-0.0.2-py3-none-any.whl
(3.3 kB
view details)
File details
Details for the file ifood-0.0.2.tar.gz
.
File metadata
- Download URL: ifood-0.0.2.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 | 57f4b23cb6780c36a78fb817798d88d99ed5e4b6ea35e94d662bc085c1c31770 |
|
MD5 | 24a6c1f80731b6cdd0c7c4daeda804f6 |
|
BLAKE2b-256 | a4b60f6054ad92c385373bb283d5586ff8a134ab6f584dbbbd45d24fe7304b8a |
File details
Details for the file ifood-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ifood-0.0.2-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 | dab84c8c4b810ef6dcf0aea4fda5d0c43c9da9b02caca769651d45ca6dc94d8d |
|
MD5 | 5628117bed4851adb8d5cb9aa5a4f38d |
|
BLAKE2b-256 | 01437e29fc845e1fa311643b2d1dd3cff7c8fd00846d44395719101d14fd043b |