FIB's courses folder creator

Usage

  1. Visit the api site of the FIB, login with your Raco-FIB account and copy the whole JSON.
  2. Visit this JSON Query Tester and paste the JSON in the JSON spot.
  3. Paste the next code in the Extraction Query spot and click Run.
$.results[*].id
  1. Copy the Resoult, paste it in the Entry to test against spot from this online regex tester and paste the next RegEx in the Regular Expression spot:
[^a-zA-Z0-9-(\r\n|\r|\n)]
  1. Leave the Replace with (Optional) empty and click Replace.
  2. Create a new folder and create a file called names.txt.
  3. Paste in this new file the Result of the RegEx replacement.
  4. In this folder, copy the file named program from this repo.
  5. Using the bash terminal run:
# chmod u+x program
  1. Run the program using
# ./program