浏览代码

Add script for extracting remaining wpull 2 queue

master
JustAnotherArchivist 4 年前
父节点
当前提交
1bc1487ecc
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      wpull2-extract-remaining

+ 8
- 0
wpull2-extract-remaining 查看文件

@@ -0,0 +1,8 @@
#!/bin/bash
# Usage: wpull2-extract-remaining FILENAME
# FILENAME points to a wpull 2.x SQLite DB
# Prints all remaining URLs from the DB on stdout
for status in in_progress todo error
do
sqlite3 "$1" 'SELECT url_strings.url FROM queued_urls JOIN url_strings ON url_string_id = url_strings.id WHERE status = "'$status'"'
done

正在加载...
取消
保存