mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
chore(packages): reorganize scripts
This commit is contained in:
19
packages/scripts/instaget.sh
Executable file
19
packages/scripts/instaget.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
for url in "$@"; do
|
||||
json="$(curl -s "$url" \
|
||||
| grep display_url \
|
||||
| grep -o '{.*}')"
|
||||
|
||||
echo "$json" \
|
||||
| jq -r '
|
||||
.entry_data.PostPage
|
||||
| .[].graphql.shortcode_media.edge_sidecar_to_children.edges
|
||||
| .[].node.display_url' \
|
||||
| xargs wget
|
||||
|
||||
echo "$json" \
|
||||
| jq -r '
|
||||
.entry_data.PostPage
|
||||
| .[].graphql.shortcode_media.display_url' \
|
||||
| xargs wget
|
||||
done
|
||||
Reference in New Issue
Block a user