Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
/ iplscore Public archive

Cricket API for Get the Live IPL Cricket Score 🏏

License

Notifications You must be signed in to change notification settings

mskian/iplscore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

IPL Score 🏏

Uptime Robot status

Cricket API for Get the Live IPL Cricket Score from espncricinfo.com.

Simple Scrape Method to Fetch the Live Cricket Score from espncricinfo.com

Methods Used βš™

  • PHP cURL - Read the Page Content
  • preg_match - Scrape the Data

Requirements

  • PHP 7.2 or 7.3 or 7.4
  • PHP cURL
  • Server with PHP Support
  • Works with Apache2, Nginx and Lightspeed
  • SSL for Secure Connections

API πŸ”

  • Get the Live Score Page URL score from - https://www.espncricinfo.com/scores
/api.php?url=https://www.espncricinfo.com/series/8048/game/1216492/mumbai-indians-vs-chennai-super-kings-1st-match-indian-premier-league-2020-21
  • Get Output in JSON Format
{
    "success": true,
    "livescore": {
        "score": "MI 39\/0 (3.4 ov, Quinton de Kock 26*, Rohit Sharma 12*, Lungi Ngidi 0\/13) - Live - Mumbai Indians vs Chennai Super Kings, Indian Premier League 2020 2020, 1st Match Match Live Score"
    }
}

Usage πŸ•

  • Download this Repo or Public Folder
  • Update the Live Match URL in /assets/js/score.js

This is Example site and For My Personal Use you can Feel Free to Edit or Modify the Site

Development 🍯

git clone https://github.com/mskian/iplscore.git
cd iplscore # for test the API
cd public # Modify the site

Stay tuned for More Updates πŸ˜‰

LICENSE βœ…

MIT