fbscraper/utils.py
def parseCSS(css):
    """routine to convert a CSS script to a dictionary"""
    dct = {}
    sheet = cssutils.parseString(css)
    for rule in sheet:
        try:
            selector = rule.selectorText
            styles = rule.style.cssText
            dct[selector] = styles
        except:
            pass
    return dct
routine to convert a CSS script to a dictionary
routine to convert a CSS script to a dictionary
routine to convert a CSS script to a dictionary
def parseCSS(css):
    dct = {}
    sheet = cssutils.parseString(css)
    for rule in sheet:
        try:
            selector = rule.selectorText
            styles = rule.style.cssText
            dct[selector] = styles
        except:
            pass
    return dct
def parseCSS ( css ) : dct = { } sheet = cssutils . parseString ( css ) for rule in sheet : try : selector = rule . selectorText styles = rule . style . cssText dct [ selector ] = styles except : pass return dct
routine to convert a CSS script to a dictionary
routine to convert a CSS script to a dictionary
"""routine to convert a CSS script to a dictionary"""
css