Zotcher
made with ❤️ by mentix02
A simple (unofficial) Zomato™ Partner API client library & CLI.
Note: Zotcher is in no way affiliated with Zomato™ or any of its subsidiaries. All trademarks are the property of their respective owners. The project itself is licensed under the GPLv3 license.
Installation
pip install zotcher
Etymology
Important things first.
Zomato™ + fetcher = Zotcher
Motivation
Zomato™ devs were too incompetent to provide order items in their CSV exports and after tearing my hair out by scraping their dashboard via client side Javascript, it became readily apparent that hacking around their private API would be far easier than sitting around and praying for them do the sensible thing. So I did.
Config & Usage
Zotcher was built with convention over configuration in mind. All that is required by the user is the Node.js fetch call to fetch-orders-by-states that can be grabbed from Chrome's Network tab in it's developer tools.
- Open up the Zomato Partner Dashboard in Chrome.
- Open the developer tools (F12). Click on "Network".
- Right click
fetch-orders-by-statesand select "Copy" -> "Copy as Node.js fetch". - Paste the copied code into a file, e.g.
fetch.js. - Run the
configcommand to generate a config file. This should create aconfig.jsonfile.
$ zotcher.py config fetch.js
- Fetch the orders using the
fetchcommand.
$ zotcher.py fetch orders.json
This should save the orders from the past 10 days to orders.json. You can go further by tweaking the
flags of the fetch command. Enjoy!
Release files for zotcher 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zotcher-0.0.3.tar.gz | 20.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zotcher-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.8 kB
Release files / zotcher-0.0.3.tar.gz
| Download URL | zotcher-0.0.3.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d61b89fb93b558bc7863925e16c0892bdd87c7ee177cff5f2a934378e6b63213
|
|
BLAKE2b-256 checksum How to use checksums |
9ea6abde1a238cd37a456691ed550965ff1adee51fb54efbe21dd3ade1482a85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / zotcher-0.0.3-py3-none-any.whl
| Download URL | zotcher-0.0.3-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee2058a4a83e54029bb7efaa6f91995aeba6e73b205f1bd5dab0934ef3fcd392
|
|
BLAKE2b-256 checksum How to use checksums |
837fa3f175aa230cbef01fb184a44af424c111c7eec5c15084dc65eccb7d0f34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|