The selectors used to retrieve version numbers and build combinations are presented below, but they are probably obsolete. The previous endpoints for experimental and headless releases and now both redirect to this page containing only the latest releases: It is also better to rely on the endpoint and version number comparisons to distinguish between stable and experimental versions than to extract that information from the download HTML page with selectors. The second method has a clear advantage of reliability through potential HTML structure changes and simplicity. Where structure described in the section above.username_or_email: your username or email address.csrf_token: the CSRF token you grabbed earlier.XPATH1: Then send a POST request with the following parameters:.CSS1: input (and then take the "value" attribute).There's a CSRF token you'll need to grab which can be found using one of the following selectors: Create an HTTP session and send a GET request.(I'll document that later, promise!)Äownloading Factorio requires an authenticated session with the web server, which is different than the typical API authentication mechanism. Also note that's there's a separate, (semi)official API for upgrading between releases, which should be used when possible to lighten the load on the Factorio servers. ![]() Please update this page if you utilize it and the information becomes outdated. It's not so much of an API as it is web scraping, but it's documented here for completeness. This API allows you to download official releases of stand-alone Factorio from the Factorio servers.
0 Comments
Leave a Reply. |