[LIB-13] Add chessgames scanner
[chesshog-scanner.git] / src / main / resources / settings / chessgames.settings
diff --git a/src/main/resources/settings/chessgames.settings b/src/main/resources/settings/chessgames.settings
new file mode 100644 (file)
index 0000000..452a981
--- /dev/null
@@ -0,0 +1,9 @@
+{
+  "tournamentUrl": "https://www.chessgames.com/perl/chess.pl?tid=[tournamentId]&page=[pageId]",
+  "tournamentIsMultiPage": true,
+  "tournamentGamesUrlRegex": "<a href=\"/perl/chessgame\\?gid=([0-9]+)\">",
+  "tournamentQuery": "https://www.chessgames.com/perl/tournaments?query=[query]",
+  "tournamentQueryUrlRegex": "<a href=\"/perl/chess.pl\\?tid=([0-9]+)\">([^<]+)</a>",
+  "gameUrl": "https://www.chessgames.com/perl/chessgame?gid=[gameId]",
+  "gamePgnUrl": "https://www.chessgames.com/perl/nph-chesspgn?gid=[gameId]&text=1"
+}
\ No newline at end of file