Coder Social home page Coder Social logo

imavinashsingh / cricket-api-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mskian/cricket-api-nodejs

0.0 0.0 0.0 142 KB

Free Live Cricket Score JSON API (Node.js Version) - Get data from Cricbuzz - Live Cricket Score API.

License: MIT License

JavaScript 100.00%

cricket-api-nodejs's Introduction

Free Cricket API ๐Ÿ

Github Workflow

Node.js Version - Get Live Cricket Score data from Cricbuzz.com

This is an unofficial API and not Linked or Partnered with Any Brands/Company.

How it Works? ๐Ÿค”

Build using Node.js and cheerio.js - using cheerio for Scrape the data and Converted in JSON API with the Help of Express Server.

Everything is scraped live and shown to end users in realtime.

API URL

  • Live Match Data - http://localhost:3000/live
  • Get Live data from the URL - http://localhost:3000/score?url=<Live Match URL>

Note

API Caching, CORS and API Rate limit Was Enabled by default you can update the settings accoding to your usage - Files are Located in /routes/ folder

Requirements ๐Ÿ“‘

  • Server With Latest LTS Node.JS Support and Nginx (For Self Host)
  • HTTPS for Secure SSL Connection

(OR)

  • use Vercel or Heroku Free Cloud Hosting

Installation and Development ๐Ÿ“ฅ

  • Download the Clone the Repo
git clone https://github.com/mskian/cricket-api-nodejs.git
cd cricket-api-nodejs
  • install Node Modules via yarn
yarn
  • Test Locally
yarn dev
  • Production
yarn start

Usage ๐ŸŸ

  • Get the Live Match Score URL from - https://www.cricbuzz.com/cricket-match/live-scores
  • Enter them Directly or replace www with m

Example ๐Ÿ“‹

http://localhost:3000/score?url=https://www.cricbuzz.com/live-cricket-scores/30524/53rd-match-indian-premier-league-2020

(OR)

  • Update the Match URL on /utlis/app.json File
http://localhost:3000/live

Free Hosting ๐Ÿ˜

  • Deploy on Vercel

Deploy with Vercel

Contributing ๐Ÿ™Œ

Your PR's are Welcome

Disclaimer ๐Ÿ—ƒ

  • This is not an Offical API from Cricbuzz - it's an Unofficial API
  • This is for Education Purpose only - use at your own risk on Production Site

All Credits Goes to https://www.cricbuzz.com/

My other Projects ๐Ÿค“

# Project Name Description
01 Live Cricket Score Static Site A Simple Scrape Method - Fetch the Live Cricket Score from espncricinfo.com using Nodejs and Cheerio.js - Not Maintained
02 IPL Special Cricket API for Get the Live IPL Cricket Score not maintained
03 Live IPL Score Update on Telegram Get Live IPL cricket Score on Telegram - Partially maintained
04 Live Cricket Score Wordpress Plugin (JS Version) Get Live Cricket Score on Wordpress site call API using Javascript Fetch API - not maintained
05 Live Cricket Score Wordpress Plugin (Wp Remote URL) Get Live Cricket Score on Wordpress site call API using Wordpress HTTP Remote URL - not maintained
06 PWA Web App Real-time Live Cricket Score Web app + PWA Built using Nuxt.js - not maintained
07 Cricket API Nodejs JSON API Node.js Version - Active Development
08 Cricket Score Widget Live Cricket Score Javascript Widget Build using Svelte JS - Partially maintained
09 Live Cricket Score CLI Get Live Cricket Score Update on Terminal and CMD - Active Development

LICENSE ๐Ÿ“•

MIT

cricket-api-nodejs's People

Contributors

mskian avatar renovate-bot avatar renovate[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.