Hi, I was trying Chess.com API, I just want to fetch some data,I managed to get my rating from it, I want to get "my today's matches", like total matches played today, number of wins, lose, draws...
I don't want PGNs and all that, I just want number of matches (rated)..
UPDATE::
I GOT IT BY DOING THIS.. (I'LL CHANGE SOME STATIC DATES AND MONTHS LATER ON..)
BUT THIS IS THE RESULT..
games = get_player_games_by_month(name,"2021","06").json['games'] (gets games of the month)
games = [d for d in games if d['end_time'] >= datetime.strptime("June 7, 2021", "%B %d, %Y").timestamp() and d['rated'] == True and d['time_class'] == "rapid"] (Filters out "rapid", and "Rated" games from given date to current date)games = [{"str": d["pgn"]} for d in games] (filters out only pgns to find out results)
for eg. in loop (for game in games)
something like this "game['str'].count('Result "1/2-1/2"')" would return true if game is drawn...
Thank you @stephen_33, @Hyper-Dragon for helping..
if anyone interested in complete code, ping me..