Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

codophobia/JavaCricbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

JavaCricbuzz

Cricbuzz for JAVA

A Java interface to cricbuzz, with options to get live scores and live commentary.

You can find detailed explaination here: javacricbuzz blog

Requirements

jsoup library: https://jsoup.org/download

One can also directly download the jar file which conatins all the dependencies packed: Cricbuzz.jar

Features

  • Get upcoming, live and recently concluded matches
  • Summary of each of the matches
  • Commentary for live matches

Basic Usage

import cricbuzz.Cricbuzz; #Assuming that source file is in a package named cricbuzz
Cricbuzz c = new Cricbuzz();

Get all the matches(live,upcoming and recently finished matches)

Vector<HashMap<String,String>> matches = c.matches();
Gson gson = new GsonBuilder().setPrettyPrinting().create(); #Add gson library in case you want a pretty output
String json = gson.toJson(matches);
System.out.println(json);

Each match will have an attribute 'id'. Use this 'id' to get scorecard, brief score and commentary of matches.

Get brief score of a match

String id = matches.get(0).get("id");
Map<String,Map> score = c.livescore(id);
json = gson.toJson(score);
System.out.println(json);

Get commentary of a match

Map<String,Map> comm = c.commentary(id);
json = gson.toJson(comm);
System.out.println(json);

About

A Java interface to cricbuzz, with options to get live scores and live commentary.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.