Skip to content

IMinevitable-3/cricket-api

Repository files navigation

Documentation

Function Values data
const scraper = new MenRank();
await scraper.initialize("all-rounder");
await scraper.scrape();
all-rounder , bowling , batting returns top 99 ranked men players in Test , ODI , t20.
const scraper = new MenRank();
await scraper.initialize("all-rounder");
await scraper.scrape();

all-rounder , bowling , batting returns top 99 ranked women players in Test , ODI , t20.
const scraper = new TeamRank();
await scraper.initialize("men");
await scraper.scrape();

men , women returns team ranks in Test , ODI , t20
const scraper = new News();
await scraper.initialize();
await scraper.scrape();

Null returns latest news in cricket
const scraper = new News();
await scraper.initialize();
await scraper.scrape();

Null returns latest news in cricket
const scraper = new Player("pandya");
await scraper.scrape()
//returns a playerID

any name returns player ID
const scraper = new Player("hardik");
await scraper.scrapeProfile(ID);

player ID returns player information and stats in ODI , t20 and test
Matches().getHTML(MATCHES_URL)

MATCHES_URL is defined,so no need returns live/recent match IDs
Commentary().getScore(88172)

Match ID returns live/recent match score

About

free cricket API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published