Skip to content

Want to add method Fullcommentary #14

@Noisycall

Description

@Noisycall

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions