Site
Home / Forum / General Discussion / Player imports

Player imports


Posted: 21 Feb 2025 21:31

zag
Admin
Posts: 3,848
Joined: 2020

I've been working hard in the background getting players imported in bulk for some of the lesser known sports.

I'll list the ones here.

https://www.thesportsdb.com/team/136797-_retired-darts
https://www.thesportsdb.com/team/136794-_retired-snooker
https://www.thesportsdb.com/team/147368-_retired-boxing
https://www.thesportsdb.com/team/135361-_retired-motorsport
https://www.thesportsdb.com/team/135358-_retired-golf
https://www.thesportsdb.com/team/136796-_retired-cricket
https://www.thesportsdb.com/team/135359-_retired-baseball

Any help to fill out details or artwork is appreciated.

Also moving any players who are still active into their respective teams is helpful.

transparent spacer
Posted: 21 Feb 2025 21:36

zag
Admin
Posts: 3,848
Joined: 2020

For anyone interested in the workflow I've been using (and to remind myself in the future):

Wikidata SPARQL query filtering by the general sports association or website that has unique ID's for players.
https://w.wiki/D9u2
Download into CSV format
Run through an import I specifically wrote for that data structure.
Then I grab the Creative commons images URLs separately
Run another import to locally download those images and update URL on here.
Using FastStone Image Viewer to auto crop and resize the images to 700 pixel resolution.
Save images and they should now be square aspect ratio.
https://www.faststone.org/

Its a longwinded process but actually already imported 5,000 new sports people this way.

transparent spacer
Posted: 22 Feb 2025 11:27

zag
Admin
Posts: 3,848
Joined: 2020

https://www.thesportsdb.com/team/135361-_Retired-Motorsport

2,000 drivers imported

transparent spacer
Posted: 23 Feb 2025 19:28

zag
Admin
Posts: 3,848
Joined: 2020

https://www.thesportsdb.com/team/135358-_Retired-Golf

1,800 PGA tour golfers imported

transparent spacer
Posted: 16 Mar 2025 20:26

zag
Admin
Posts: 3,848
Joined: 2020

https://www.thesportsdb.com/team/136796-_retired-cricket

17,000 retired cricket players imported

transparent spacer
Posted: 21 May 2025 09:41

zag
Admin
Posts: 3,848
Joined: 2020

7,000+ former and current baseball players imported. Also managed to import the artwork from wikidata as well.

Required some fun and games to crop the images at the top but got there in the end. I found IrfanView has a nice GUI batch crop feature that works very well for this when images are tall.

Please fill out any details, history or fix artwork if its off. This is a huge import

https://www.thesportsdb.com/team/135359-_retired-baseball

transparent spacer
Posted: 23 Oct 2025 20:49

zag
Admin
Posts: 3,848
Joined: 2020

I've managed to import another 11,000 former baseball players with 7,000 creative commons artworks also.

This allows me to match up historical player stats so I think we have virtually all MLB players going back to 1995 now.

https://www.thesportsdb.com/team/135359-_retired-baseball


transparent spacer
Showing 0 to 7 (Total: 7)