mirror of
https://github.com/adulau/mastodon-markdown-archive.git
synced 2024-11-21 17:37:06 +00:00
new: [test] convert my paperbay.org account into an archive
This commit is contained in:
parent
fc4484b10d
commit
43aff367bf
1 changed files with 13 additions and 0 deletions
13
test/download.sh
Normal file
13
test/download.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
while true; do
|
||||
command="./mastodon-markdown-archive --template=../files/templates/post.tmpl --user=https://paperbay.org/@a --dist=./posts --persist-last=./last --max-id=$(test -f ./last && cat ./last || echo "") --download-media=./posts --porcelain=true --threaded=true"
|
||||
output=$($command)
|
||||
if [[ "$output" -eq 0 ]]; then
|
||||
echo "No posts returned. Exiting"
|
||||
break
|
||||
fi
|
||||
echo "Fetched $output posts. Continuing."
|
||||
sleep 1
|
||||
done
|
||||
|
Loading…
Reference in a new issue