Football Transfers Graph

This is another beautiful extension!

The Football Transfer window is currently open, which means players are moving around the globe for increasingly exorbitant fees.

The best place to keep track of what’s going on is the
Latest Transfers page of the transfermarkt website, which captures details of the players, clubs, and fees involved.

Irfan and I were trying to work out where the money was flowing based on the transfers, so we decided to create a Neo4j Graph to help us out.
The scraping code to get the data from the transfermarkt website is in the mneedham/football-transfers repository. The transfers.json file contains JSON documents for all the transfers that happened since June 2019.
Loading the data
One line of the transfers.json file looks like this:
{
“season”:”2019/2020″,
“player”:{
“href”:”/antoine-griezmann/profil/spieler/125781″,
“name”:”Antoine Griezmann”,
“position”:”Centre-Forward”,
“age”:”28″,
“image”:”https://tmssl.akamaized.net//images/portrait/medium/125781-1533626871.jpg?lm=1533626889″,
“nationality”:”France”
},
“from”:{
“href”:”/atletico-madrid/startseite/verein/13″,
“name”:”Atlu00e9tico Madrid”,
“country”:”Spain”,
“league”:”LaLiga”,
“leagueHref”:”/primera-division/transfers/wettbewerb/ES1″,
“image”:”https://tmssl.akamaized.net//images/wappen/tiny/13.png?lm=1519120744″
},
“to”:{

Meet this fancy module!

Copyright for syndicated content belongs to the Linked Source