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

mskian/livescore

Repository files navigation

Live Score 🔔

Uptime Robot status dependencies Status devDependencies Status

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

Methods Used ⚙

  • Cheerio.js for scrape the content
  • axios - HTTP Client
  • Bundle the Package using browserify.JS
  • Babel - Minify the Bundled JS
  • Node http-server - Test the Site Locally

CORS API 🍔

By default espncricinfo Blocking the Cross-origin Request so we use https://cors-anywhere.herokuapp.com to Bypass the CORS Blocking but cors-anywhere Limited the Call request yes we can call only 200 request Hour (200 Request for 1 Hour) if you want More then Self-host the cors-anywhere API Script it's Open Source For More Refer here - https://github.com/Rob--W/cors-anywhere#demo-server

➡ PHP API Method - https://github.com/mskian/iplscore
➡ Telegram Score Updates on Channel - https://github.com/mskian/score-update

usage 📦

  • Clone or Download and Upload the public Folder on your server or localhost
git clone https://github.com/mskian/livescore.git
cd livscore # Update JS File
## Open Public folder to update the static content
cd public

Still Many Features are Missing I will Updating one by one based on user Suggestion - if you have any ideas your PR's are welcome.

Development 🛠

  • Clone this respo and install the Modules via yarn
git clone https://github.com/mskian/livescore.git
cd livescore
yarn
yarn build
  • Test the site on local server
yarn live
  • Minify the JS Build
yarn minify

To Do List 🔖

  • Live Auto Refresh - Auto Refresh the Score Every 1 Minutes -
    setInterval(Getscore, 60 * 1000);

For Education and Learning Purpose only ✍

We are not Responsible for any future damage use at your own risk.if you want to use this on Production Read the ESPNcricinfo Terms and use.

LICENSE ☑

MIT