Remove a now-unused script
- ID
1251bf3- date
2025-04-06 21:48:15+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
fc664b5- message
Remove a now-unused script- changed files
2 files, 1 addition, 41 deletions
Changed files
web/README.md (3495) → web/README.md (3077)
diff --git a/web/README.md b/web/README.md
index a780e66..928f977 100644
--- a/web/README.md
+++ b/web/README.md
@@ -36,12 +36,6 @@ scripts = [
"""
},
{
- "usage": "save_instagram_post URL",
- "description": """
- save the photos from a single Instagram post to a temporary directory
- """
- },
- {
"name": "scrape_really_useful_boxes.py",
"description": """
scrape the Really Useful Boxes product catalogue, so I can search for boxes in ways their website doesn't allow – in particular, by dimensions, so I can find boxes that fit into specific spaces.<br/><br/><img src="really_useful_boxes.png">
@@ -87,15 +81,6 @@ cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
</dd>
<dt>
- <a href="https://github.com/alexwlchan/scripts/blob/main/web/save_instagram_post">
- <code>save_instagram_post URL</code>
- </a>
- </dt>
- <dd>
- save the photos from a single Instagram post to a temporary directory
- </dd>
-
- <dt>
<a href="https://github.com/alexwlchan/scripts/blob/main/web/scrape_really_useful_boxes.py">
<code>scrape_really_useful_boxes.py</code>
</a>
@@ -113,4 +98,4 @@ cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
this is a wrapper around <a href="https://github.com/yt-dlp/yt-dlp">yt-dlp</a> that does parallel downloads of videos in playlists.
</dd>
</dl>
-<!-- [[[end]]] (checksum: 12930590ef863d6c23f93554fb170cd5) -->
+<!-- [[[end]]] (checksum: 8ca8e6855833f6e445b7ff4d7e83ec98) -->
web/save_instagram_post (402) → web/save_instagram_post (0)
diff --git a/web/save_instagram_post b/web/save_instagram_post
deleted file mode 100755
index 3b8e5fb..0000000
--- a/web/save_instagram_post
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env bash
-
-set -o errexit
-set -o nounset
-
-if (( $# != 1 ))
-then
- echo "Usage: $0 URL" >&2
- exit 1
-fi
-
-url="$1"
-
-pushd $(mktemp -d) >/dev/null
- uv venv --quiet .venv
- source .venv/bin/activate
-
- uv pip install --quiet instaloader
-
- post_id=$(echo "$url" | tr '/' ' ' | awk '{print $4}')
- instaloader -- "-$post_id"
-
- echo "$(pwd)/-$post_id"
- reveal "$(pwd)/-$post_id"
-popd >/dev/null