pycricbuzz icon indicating copy to clipboard operation
pycricbuzz copied to clipboard

Want to add method Fullcommentary

Open Noisycall opened this issue 5 years ago • 1 comments

Full commentary method retrieves the entire commentary for a match. Added it to a branch but I don't have access to commit it

Added code is as follows: image

def fullcommentary(self,mid): data = {} try: url = "https://www.cricbuzz.com/match-api/"+mid+"/commentary-full.json" comm = self.crawl_url(url).get('comm_lines') d = [] for c in comm: if "comm" in c: d.append({"comm":c.get("comm"),"over":c.get("o_no")}) data['fullcommentary'] = d return data except Exception: raise

Noisycall avatar May 25 '19 07:05 Noisycall

Submit a pull request to author.

rakemen avatar Feb 13 '20 07:02 rakemen