diff options
author | Aleksei <email@email.email> | 2022-07-14 17:31:47 +0300 |
---|---|---|
committer | Aleksei <email@email.email> | 2022-07-14 17:31:47 +0300 |
commit | 62d382f913bfdb5f9bf724b91d013e51202f09ef (patch) | |
tree | f5c9061d2810d8bcf12645591fe89670708a90ff /rskrf-productGroups.sh |
Diffstat (limited to 'rskrf-productGroups.sh')
-rwxr-xr-x | rskrf-productGroups.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rskrf-productGroups.sh b/rskrf-productGroups.sh new file mode 100755 index 0000000..e835f61 --- /dev/null +++ b/rskrf-productGroups.sh @@ -0,0 +1,7 @@ +#!/bin/sh +burl=https://rskrf.ru/rest/1/catalog/categories/ +curl -s $burl | jq -cr '.response[]|.id' | + xargs -I '{}' curl -s $burl'{}' | + jq -cr '.response[]|.id' | + xargs -I '{}' curl -s $burl'{}'/productGroups/ | + jq -cr '.response.productGroups[]|[.id,.title]' |