As someone who runs a server using a Docker container I've created myself, I'd love a way to automate the process of building a new container, when a new version of the game is out.
My best idea currently is scraping the HTML of https://factorio.com/download-headless, but it would be ideal if there was some endpoint that would expose the list of versions, in a machine readable format, eg. JSON, XML, whatever.
Ideally the data should look something like (Loosely using python data structures as pseudo-code):
Code: Select all
{
[
tag: "latest",
version: "0.18.24",
],
[
tag: "stable",
version: "0.17.79",
],
[
tag: "0.17.79",
version: "0.17.79",
],
[
tag: "0.17.74",
version: "0.17.74",
],
}
Since the game itself has a way of knowing that a new version is available, I presume some sort of infrastructure along these lines already exists?
I believe an official solution would be significantly easier than scraping the HTML, since the data is already there somewhere on the backend, and being converted into HTML. Instead of trying to convert it back again, having the original data would be great.