You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,13 @@ For a summary of live matches, create an instance of the `Summary` class:
22
22
23
23
```python
24
24
>>>from espncricinfo.summary import Summary
25
+
>>>from espncricinfo.match import Match
25
26
>>> s = Summary()
26
-
>>> s.match_ids
27
-
['68079', '68209', '68081', '61375', '65429']
27
+
>>> s.matches
28
+
[(1478874, 1478914), ...]
29
+
>>>for series_id, match_id in s.matches:
30
+
... m = Match(match_id, series_id)
31
+
...print(m.description)
28
32
```
29
33
30
34
For individual matches, pass in both the match ID and series ID. These can be discovered from `get_recent_matches()`, or read from a match page URL (the two numeric IDs in the URL path):
0 commit comments