ソースを参照

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

読み込み中…
キャンセル
保存