Skip to content

Instantly share code, notes, and snippets.

@kuldeepiitg
Created December 23, 2025 06:04
Show Gist options
  • Select an option

  • Save kuldeepiitg/a4593ffec1081bb4b6bbd1b2e31fffa7 to your computer and use it in GitHub Desktop.

Select an option

Save kuldeepiitg/a4593ffec1081bb4b6bbd1b2e31fffa7 to your computer and use it in GitHub Desktop.
import csv
import json
import re
import sys
import requests
# Ensure correct usage
if len(sys.argv) != 4:
print("Usage: upload_category_dishes.py <userId> <restaurantId> <dataFile>")
sys.exit(1)
user_id = sys.argv[1]
restaurant_id = sys.argv[2]
# File path to the CSV file
csv_file_path = sys.argv[3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment