simbirskiy/flashscore-football-parser
Composer 安装命令:
composer require simbirskiy/flashscore-football-parser
包简介
Package for parsing football information from flashscore.com pages. Data representation in json format.
README 文档
README
It's library for parsing football matches from flashscore.com.
Must be set header for every request below
'x-fsign' => 'SW9D1eZo'
Get matches from feed
https://local-ruua.flashscore.ninja/46/x/feed/f_1_-1_3_ru-kz_1
Get match info(review)
https://local-ruua.flashscore.ninja/46/x/feed/df_sui_1_tIOlBi9Q
Get odds in match page below
https://46.ds.lsapp.eu/pq_graphql?_hash=ope&eventId=xfDhHNQD&projectId=46&geoIpCode=RU&geoIpSubdivisionCode=RUMOW
Examples
Pars data from feed response
use Simbirskiy\FlashscoreParser\Pages\Main\Feed\Feed; $feedToday = new Feed($fakeData->getData()); $data = $feedToday->get();
Pars match data
use Simbirskiy\FlashscoreParser\Pages\Match\Info\Info; $data = (new Info($content))->get();
Pars match data from review tab
use Simbirskiy\FlashscoreParser\Pages\Match\Tabs\MatchSummary\MatchSummaryReview; $data = (new MatchSummaryReview($content))->get();
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-24