No attribute 'today'

with this script i am trying to turn API to CSV ( adding more data to my csv folder)

    date = datetime.date.today.strftime("%D/%m/%Y")
url="https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,JPY,EUR"
response = requests.get(url).json()
price = response["USD"]
        

fieldnames = ["date", "price"]


with open('data.csv', 'r+') as csv_file:
    csv_writer = csv.DictWriter(csv_file, fieldnames=fieldnames)
    csv_writer.writeheader()
    

while True:

    with open('data.csv', 'a') as csv_file:
        csv_writer = csv.DictWriter(csv_file, fieldnames=fieldnames)

        info = {
            "date": date,
            "price": price
        }

        csv_writer.writerow(info)
        print(date, price)
    
    
        
        date = datetime.date.today().strftime("%D/%m/%Y")
        url="https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,JPY,EUR"
        response = requests.get(url).json()
        price = response["USD"]
        

    time.sleep(86400)

however, they give me this message wheeni rerun streamlit:

AttributeError: 'method_descriptor' object has no attribute 'today'

Traceback:

File "c:\users\asus_user\anaconda3\lib\site-packages\streamlit\script_runner.py", line 337, in _run_script
    exec(code, module.__dict__)File "C:\Users\Asus_user\Desktop\bitcoin\app.py", line 83, in <module>
    date = datetime.date.today().strftime("%d/%m/%Y")

can u help me please?

The first line is missing the parenthesis, it should be.

date = datetime.date.today().strftime("%D/%m/%Y")

Best,
Randy

they still give me the same message. any idea why ?