#!/bin/bash
cat "$@" | htmllinks | grep File: > file-pages.txt
< file-pages.txt relurl https://commons.wikimedia.org/ | i file-pages wgall
cat file-pages/* | htmllinks | grep '^https://upload.wikimedia.org/' | uniqo | grep -v -e /thumb/ -e /archive/ > images.txt
< images.txt i images wgall
