Add a script to write the links to a json file
Write the json file