瀏覽代碼

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

Loading…
取消
儲存