Created
November 20, 2021 11:33
-
-
Save MuhammadSawalhy/19aa53d56e03a00ac514c72a4571d60f to your computer and use it in GitHub Desktop.
Revisions
-
MuhammadSawalhy created this gist
Nov 20, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/bash for page in {1..173}; do curl -L "https://techtionary.thinktech.sa/api/terms?page=$page" | jq .data > /tmp/terms.$page.json done node -p 'JSON.stringify(Array.from({length: 173}).map((_,index)=> require("/tmp/terms." + (index + 1) + ".json")).flat())' | jq > ~/myp/mobadarah/techtionary.thinktech.sa__terms.json