A small script that goes through the Factorio API documentation html and exports JSON intended to be used by autocomplete extensions such as https://github.com/simonvizzini/vscode-factorio-lua-api-autocomplete
Generate defines.json
and classes.json
files by executing one of the following:
- Install Python 3.7+ & BeautifulSoup (
bs4
) python Scraper.py
# optional: docker build -t cdaringe/factorio-api-scraper .
docker run --rm -v $PWD:/app cdaringe/factorio-api-scraper