Skip to content

Instantly share code, notes, and snippets.

@asharma327
Last active June 13, 2022 07:22
Show Gist options
  • Save asharma327/46addc72ac43434a0e77a4738d925fb4 to your computer and use it in GitHub Desktop.
Save asharma327/46addc72ac43434a0e77a4738d925fb4 to your computer and use it in GitHub Desktop.
import requests
# pip install requests
import requests
r = requests.post("https://api.apispreadsheets.com/data/your_file_id/", json={"data": [{"title": "The Avengers", "genre": "Action", "director": "Joss Whedon","release_year": 2012},{"title": "Parasite", "genre": "Drama", "director": "Bong Joon-ho","release_year": 2019},{"title": "Knives Out", "genre": "Thriller", "director": "Rian Johnson","release_year": 2019}]})
if r.status_code == 201:
# SUCCESS
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment