Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
files = """
blt45 a white bishop
-adt45 a black knight
+#adt45 a black knight
"""
[chess.scraper]
method = "wikimedia"
licences = [ "Cc-by-sa-3.0", "GFDL|migration=relicense" ]
-url_prefix = "https://commons.wikimedia.org/wiki/File:Chess "
-url_suffix = ".svg"
+url_prefix = "https://commons.wikimedia.org/wiki/File:Chess_"
+url_suffix = ".svg?action=raw"
#!/usr/bin/perl -w
use strict;
-use autodie;
use POSIX;
use TOML::Parser;
open DEBUG, ">&STDERR" or die $!;
sub run_curl {
- my (@curl) = (qw(curl), @_);
+ my (@curl) = (qw(curl -Ssf -L --proto-redir -all), @_);
our $last_curl;
$last_curl //= 0.;
my $now = Time::HiRes::time;