From 602862ca8e87d01b14ee82e50a1b1cb882c79cd9 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Wed, 13 Mar 2024 23:44:51 +0100 Subject: [PATCH] Update sources --- _data/tournaments.tsv | 13 +++++++++++-- _scripts/update_tournaments.py | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/_data/tournaments.tsv b/_data/tournaments.tsv index 0224f34..a1644e2 100644 --- a/_data/tournaments.tsv +++ b/_data/tournaments.tsv @@ -1,28 +1,37 @@ start-date end-date variant location tournament source 2024-03-16 2024-03-17 Shogi London Mindsports Centre, 21 Dalling Rd, JD, Great Britain 2024 London Spring Shogi Tournament fesashogi.eu +2024-03-23 2024-03-23 Shogi 53, Barcelona, C/ del Rector Triadó Dojo 23/3 shogi.es 2024-03-23 2024-03-24 Shogi Ten Weyngaert, 54 rue des Alliés, Brussels, Belgium 9th Brussels Winter Shogi Open fesashogi.eu 2024-03-23 2024-03-24 Shogi "« Ten Weyngaert », Bruxelles, ""Ten Weyngaert"", Belgique" Open de Bruxelles shogi.fr 2024-03-23 2024-03-24 Xiangqi - Xiangqi-Turnier Berlin chinaschach.de 2024-03-30 2024-04-01 Shogi Parc Floral de Paris, Rte du Champ de Manoeuvre, Paris, France Japan Party shogi.fr +2024-04-06 2024-04-06 Shogi 53, Barcelona, C/ del Rector Triadó Dojo 6/4 shogi.es 2024-04-06 2024-04-06 Shogi Swidwin, A, Polen Chinese Chess Day of Swidwin 2024 tourney-momentums.eu 2024-04-06 2024-04-07 Shogi Place: Pav San, 43 av. Alsace Lorraine, Grenoble, France 2nd Grenoble Shogi Tournament fesashogi.eu 2024-04-08 2024-04-08 Xiangqi - Xiangqitreffen online chinaschach.de 2024-04-12 2024-04-14 Shogi - International Shogi Forum 2024 PreQualification Tournament for Bulgaria tourney-momentums.eu 2024-04-13 2024-04-13 Shogi BoardGames Ruse, Ruse, Bulgaria Ruse Shogi Open 2024 fesashogi.eu +2024-04-20 2024-04-20 Shogi 53, Barcelona, C/ del Rector Triadó Dojo 20/4 shogi.es 2024-04-20 2024-04-20 Shogi HUB Bratislava, Bratislava, Slovakia Slovakia Shogi Open 2024 fesashogi.eu -2024-04-20 2024-04-21 Shogi ILM – Maison de quartier du Lac de Maine, 34 rue de la Chambre aux Deniers, Angers, France Championnat de France Angers shogi.fr +2024-04-20 2024-04-21 Shogi Angers, France Championnat de France Angers shogi.fr 2024-04-27 2024-04-27 Shogi Essen, Nordrhein-Westfalen, Germany EMO Shogi Open 2024 fesashogi.eu 2024-05-04 2024-05-04 Shogi Brot & Spiele, Graz, Austria Austrian qualification tournament for ISF fesashogi.eu 2024-05-04 2024-05-05 Shogi Casa dei Giochi, Milan, Italy XX Italian Shogi Championship fesashogi.eu 2024-05-06 2024-05-08 Shogi Hotel Balkan, Sofia, Bulgaria ISF Bulgarian Qualification Finals fesashogi.eu +2024-05-11 2024-05-11 Shogi 53, Barcelona, C/ del Rector Triadó Torneo 11/5 shogi.es 2024-05-11 2024-05-11 Shogi B, The Hague, The Netherlands Open Dutch Shogi Championship 2024 fesashogi.eu 2024-05-13 2024-05-13 Xiangqi - Xiangqitreffen online chinaschach.de -2024-05-24 2024-05-26 Shogi "Cultural center ""Parthenagogio"", Gytheio, Greece" Shogi Days of Gytheio 2024 fesashogi.eu +2024-05-24 2024-05-26 Shogi Gytheio, Greece Shogi Days of Gytheio 2024 fesashogi.eu +2024-05-25 2024-05-25 Shogi 53, Barcelona, C/ del Rector Triadó Dojo 25/5 shogi.es +2024-06-01 2024-06-01 Shogi 53, Barcelona, C/ del Rector Triadó Dojo 1/6 shogi.es 2024-06-08 2024-06-09 Xiangqi Steinwiesen, Ankerstr., Deutschland Deutsche Meisterschaft in Steinwiesen chinaschach.de 2024-06-10 2024-06-10 Xiangqi - Xiangqitreffen online chinaschach.de +2024-06-15 2024-06-15 Shogi 53, Barcelona, C/ del Rector Triadó Dojo 15/6 shogi.es 2024-06-22 2024-06-23 Antichess Amsterdam Antichess World Championship antichess.org 2024-06-29 2024-06-30 Shogi Llanwrtyd Wells, Powys, Wales, United Kingdom The Heart of Wales Open 2024 fesashogi.eu +2024-07-06 2024-07-06 Shogi 53, Barcelona, C/ del Rector Triadó Torneo 6/7 shogi.es 2024-07-08 2024-07-08 Xiangqi - Xiangqitreffen online chinaschach.de +2024-07-20 2024-07-20 Shogi 53, Barcelona, C/ del Rector Triadó Dojo 20/7 shogi.es 2024-08-01 2024-08-04 Shogi Carrer Vidal i Ribas, 25, Sant Feliu de Llobregat, Barcelona ESC/WOSC 2024 fesashogi.eu 2024-08-12 2024-08-12 Xiangqi - Xiangqitreffen online chinaschach.de 2024-08-24 2024-08-25 Xiangqi Steinwiesen, Ankerstr., Deutschland Xiangqi-Turnier Steinwiesen chinaschach.de diff --git a/_scripts/update_tournaments.py b/_scripts/update_tournaments.py index 8ba9e5c..70174fa 100644 --- a/_scripts/update_tournaments.py +++ b/_scripts/update_tournaments.py @@ -14,6 +14,7 @@ FESA_URL = 'http://fesashogi.eu/index.php?mid=2' DXB_URL = 'http://chinaschach.de/blog/events/list/?ical=1' FFS_URL = 'https://shogi.fr/events/liste/?ical=1' +SNK_URL = 'https://shogi.es/calendario/lista/?ical=1' TOURNEY_MOMENTUMS_URL = 'https://tourney-momentums.eu/tournaments/category/english/list/?ical=1' @@ -90,6 +91,8 @@ def prettify_location(locations): locations.replace(to_replace='[^, ][^,]* \d+', value='', regex=True, inplace=True) # strip zip code from city locations.replace(to_replace=r'\d{4,6}|\d+\-\d+', value=r'', regex=True, inplace=True) + # lengthy names + locations.replace(to_replace='[^,]{30,}', value='', regex=True, inplace=True) # clean up by removing redundance and consolidating whitespacing return locations.apply(lambda x: ", ".join(dict.fromkeys(s.strip() for s in str(x or '-').split(',') if s.strip()))) @@ -110,6 +113,7 @@ def prettify_location(locations): get_ics_calendar(TOURNEY_MOMENTUMS_URL, current.columns, ('shogi', 'xiangqi', 'janggi', 'makruk')), get_ics_calendar(DXB_URL, current.columns, ('xiangqi',)), get_ics_calendar(FFS_URL, current.columns, ('shogi',)), + get_ics_calendar(SNK_URL, current.columns, ('shogi',)), get_html_calendar(FESA_URL, current.columns), ]) merged = pd.concat(calendars)