pycricbuzz
pycricbuzz copied to clipboard
Want to add method Fullcommentary
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:
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
Submit a pull request to author.