epeeme / web

Web site that presents results & ranking data from LPJS, Elite Epee, BYC, EYC and other UK youth, cadet & junior fencing competitions.
https://epee.me/
1 stars 1 forks source link

FIE Results Import #15

Closed epeeme closed 4 years ago

epeeme commented 4 years ago

FIE have updated their web site and the old page parser no longer works. This parser needs updating and bringing in line with the other new parsers. Example;

https://fie.org/competitions/2020/16?tab=results

epeeme commented 4 years ago

HTML pages over populated with data, so best to pull from the PDF files;

https://fie.org/competition/2020/16/results/ranking/pdf?lang=en

and use this API to convert to CSV

https://developers.zamzar.com/php/pdf-to-csv

epeeme commented 4 years ago

Also, quick test https://www.pdfparser.org/demo to see if this parses OK as the demo does not.

epeeme commented 4 years ago

Discovered that JSON data is embedded into the source. Created a new scraper and importer, so now FIE results can be handled in the same way as engarde/fencingtime/etc ... but it does need to be just one age category at a time. Importer located at https://epee.me/epeeme_v2/importers/getEventFIE.php