Procházet zdrojové kódy

Add script for extracting remaining wpull 2 queue

master
JustAnotherArchivist před 4 roky
rodič
revize
1bc1487ecc
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. +8
    -0
      wpull2-extract-remaining

+ 8
- 0
wpull2-extract-remaining Zobrazit soubor

@@ -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

Načítá se…
Zrušit
Uložit