Skip to main content

Zotcher

GitHub top language GitHub Code style: black

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.

  1. Open up the Zomato Partner Dashboard in Chrome.
  2. Open the developer tools (F12). Click on "Network".
  3. Right click fetch-orders-by-states and select "Copy" -> "Copy as Node.js fetch". Copy Node.js fetch
  4. Paste the copied code into a file, e.g. fetch.js.
  5. Run the config command to generate a config file. This should create a config.json file.
$ zotcher.py config fetch.js
  1. Fetch the orders using the fetch command.
$ 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)

Source distribution for zotcher 0.0.3
File Size Uploaded
zotcher-0.0.3.tar.gz 20.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zotcher 0.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page