Football Data Platform
收藏资源简介:
Football Data Platform是一个为足球爱好者、分析师和研究人员定制的综合数据聚合工具。它从FBref、Sofascore和Transfermarkt等流行平台收集足球相关数据,并将数据存储为JSON文件,随后加载到PostgreSQL数据库中进行结构化查询和分析。
The Football Data Platform is a comprehensive data aggregation tool tailored for football enthusiasts, analysts, and researchers. It collects football-related data from popular platforms such as FBref, Sofascore, and Transfermarkt, stores the data in JSON files, and subsequently loads it into a PostgreSQL database for structured querying and analysis.
数据集概述
数据来源
- FBRef
- Sofascore
- Transfermarkt
数据处理功能
- 数据抓取: 从Transfermarkt、Sofascore和FBRef系统化地抓取数据。
- 数据存储: 将网页数据保存为JSON文件。
- 数据库加载: 将抓取的数据结构化并加载到PostgreSQL数据库中。
数据抓取命令
-
Sofascore: bash scrapy crawl sofascore -a TOURNAMENT_ID=<tournament_id> -a SEASON_ID=<season_id>
-
Transfermarkt: bash scrapy crawl transfermarkt -a TOURNAMENT_ID=<tournament_id> -a SEASON_ID=<season_id>
-
FBref: bash scrapy crawl <spider_name>
其中,
<spider_name>可为:- FBrefBRA1
- FBrefEPL
- FBrefUCL
数据处理命令
bash python app/processing {sofascore,transfermarkt} [--full-load] [--debug]
以上命令用于从指定来源处理数据,可选参数包括全量加载和调试模式。




