How can I automate downloading the SHA256 file for Telegraf?

June 6, 2025 4 answers
Asked by TechieNinja42
Hey there! I'm trying to fully automate the update process for our Telegraf service on a Windows server. The challenge I'm facing is that the SHA256 file is hidden behind a JavaScript button, which makes it tricky to grab programmatically. Has anyone found a way to automate the download and verification of the latest SHA file for Telegraf? I've got most of it set up, but this JS component is really slowing me down.

Answers

DevOpsDiva77
You could also use the GitHub API to retrieve Telegrafโ€™s SHA256 directly. If that's not an option, Puppeteer is another tool that can manage the JS button for you.
Reply to this answer
CodeWhiz101
You might want to try using Selenium for this; it's great for handling web pages with dynamic content.
Reply to this answer
QueryMaster88
Could you provide the URL? That might help in finding a solution to grab the SHA file.
Reply to this answer
JsonKing23
Check out this URL: https://www.influxdata.com/versions.json. It should have the data you're looking for!
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions