Last active
June 13, 2022 07:22
-
-
Save asharma327/46addc72ac43434a0e77a4738d925fb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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