Skip to content

A small script that goes through the Factorio API documentation html and exports a json intented to be used by autocomplete extensions such as https://github.com/simonvizzini/vscode-factorio-lua-api-autocomplete

License

Notifications You must be signed in to change notification settings

spiwn/FactorioApiScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FactorioApiScraper

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

Usage

Generate defines.json and classes.json files by executing one of the following:

Via python

  • Install Python 3.7+ & BeautifulSoup (bs4)
  • python Scraper.py

Via docker

# optional: docker build -t cdaringe/factorio-api-scraper .
docker run --rm -v $PWD:/app cdaringe/factorio-api-scraper

About

A small script that goes through the Factorio API documentation html and exports a json intented to be used by autocomplete extensions such as https://github.com/simonvizzini/vscode-factorio-lua-api-autocomplete

Topics

Resources

License

Stars

Watchers

Forks