First tested something simple like this, which works:
* * * * * echo "something" > /Users/sam/Desktop/vscode/crontest.txt
Now trying
28 10 * * * /Users/user/Desktop/work/venv/bin/python /Users/user/Desktop/work/py_files/test.py
But nothing is happening.
The python script ingests some data from API, parses JSON and outputs to a local mysql db
engine_insert = sqlalchemy.create_engine('mysql+pymysql://root:password@127.0.0.1:3306/database')
df.to_sql('database', engine_insert, if_exists='append', index=False)
But other simpler crons I also had issue with too like opening a website via browser so may just be a syntax issue with crontab?