From 3ee3ffc340c1090cbca9bd58258e0f9c73d03664 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Mon, 6 May 2019 22:29:21 +0000 Subject: [PATCH] Generate commands for Blogspot --- archivebot-blogspot | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 archivebot-blogspot diff --git a/archivebot-blogspot b/archivebot-blogspot new file mode 100755 index 0000000..723af52 --- /dev/null +++ b/archivebot-blogspot @@ -0,0 +1,12 @@ +#!/bin/bash +scriptpath="$(cd "$(dirname "$0")"; pwd -P)" + +if [[ "$1" =~ ^http ]] +then + url="$1" +else + url="https://${1}.blogspot.com/" +fi + +echo "!a ${url}" +echo "!ig $("${scriptpath}/archivebot-jobid-calculation" "${url}") ^${url//./\\.}search\?(.*&)?reverse-paginate=true(&|$)"