3 ms·
Updated and improved #!/bin/sh j=https://www.judyrecords.com; case $# in 1) tmux new -P -d links; tmux set set-remain-on-exit on;
by 1vuio0pswjnm7 6y ago
Updated and improved
#!/bin/sh
j=https://www.judyrecords.com;
case $# in
1)
tmux new -P -d links;
tmux set set-remain-on-exit on;
tmux send g;
tmux send $j/addSearchJob?search="$@";
tmux send c-m;
sleep 1.7;
tmux send d;
tmux capturep -p|sed -n /./p;
tmux send g;
tmux send $j/getSearchJobStatus;
tmux send c-m;
sleep 1.7;
tmux send d;
tmux capture -p|sed -n /./p;
;;0)
test $n||n=1;while true;do test $n -le 200||break;
tmux send Down
tmux send Down
tmux send g
tmux send $j/getSearchResults?page=$n
tmux send c-m;
sleep 2;
tmux send Down
tmux send Down
tmux send Escape;
tmux send F
tmux send v
tmux send c-u
tmux send 1.htm
tmux send c-m
tmux send o
sed -n "/href=\"\/record/{s,.*record\/,$j/record/,;s,\",,;p;}" 1.htm;
__grepq=$(exec sed -n '/a class=\"goToNextPage/!d;=;q' 1.htm);
test ${#__grepq} -gt 0||break;
n=$((n+1));
done;
tmux killw ;
esac