Ejemplo n.º 1
0

 # How to get live cricket scores in python
 
 
from pycricbuzz import Cricbuzz

c = Cricbuzz()

matches = c.matches()
for match in matches:
    print(match)
    if (match['mchstate']!='nextlive'):
        print(c.livescore(match['id']))
        print(c.commentary(match['id']))
        print(c.scorecard(match['id']))
        
        
        
#########################


 # How to save RAM memory using python
 
 

import psutil
psutil.cpu_percent()  # checks current cpu units

psutil.virtual_memory()   # how much RAM we used it
dict(psutil.virtual_memory()._asdict())