I am trying to apply an automatic data refresh that I am publishing to the tableau public website. The link provided below has insight to automatic updates for tableau Online, but not Tableau Public. They use a .Bat file and windows task scheduler. I've been searching for a while and haven't found anything.
Tableau Public does not refresh extracts, you'll need to refresh them in Tableau Desktop and republish, or use a live connection to your data.