danabrey/espn-ncaa-stats-scraper
Composer 安装命令:
composer require danabrey/espn-ncaa-stats-scraper
包简介
PHP package for scraping college football player stats from ESPN
README 文档
README
This PHP package scrapes stats for a college football player from ESPN. Based off of the equivalent CBS scraper.
Installation
Via Composer:
composer require danabrey/espn-ncaa-stats-scraper
Usage
Scrape a player's stats by passing their ESPN player ID (found in the URL e.g. https://www.espn.co.uk/college-football/player/stats/_/id/4241463/jerry-jeudy)
$scraper = new DanAbrey\ESPNNCAAStatsScraper\Scraper();
$stats = $scraper->getPlayerStats(4241463);
The return from getPlayerStats will be a Player object, which includes their ID, name and a seasons property which is an array of PlayerSeason objects, containing the stats for the player that season.
Disclaimer
Scraping from websites without permission may be against Terms of Service. Use this package at your own discretion.
Contributing/Contact
Please feel free to raise issues or open pull requests with suggestions on how to improve this project. For any informal questions, find me on Twitter at @danabrey.
License
- MIT license
- Copyright 2019 © Dan Abrey
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-23