I am trying to use the 'get' function with a url from a spreadsheet in Sheety but it isnt printing me out any data in Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Daisy332
    New Member
    • Aug 2022
    • 1

    I am trying to use the 'get' function with a url from a spreadsheet in Sheety but it isnt printing me out any data in Python

    I was using the get function to print the data from a spreadsheet in Sheety but when I pressed the run button, it just said: 'Process finished with exit code 0' so why am I no getting the data printed out? Here is my code(I also want to put the code in a class):

    ```
    import requests

    SHEETY_PRICES_E NDPOINT = 'https://docs.google.com/spreadsheets/d/1tHNqhwNfvixlV3 Xc4-LHR0MgjHraNTpQk 5dhNynM7wI/edit?usp=sharin g'


    class DataManager:

    def get_destination _data(self):
    response = requests.get(SH EETY_PRICES_END POINT)
    data = response.json()

    print(data.text )
    ```
Working...