瀏覽代碼

Generate commands for Blogspot

master
JustAnotherArchivist 5 年之前
父節點
當前提交
3ee3ffc340
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. +12
    -0
      archivebot-blogspot

+ 12
- 0
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(&|$)"

Loading…
取消
儲存