and parsing a HTML file. But i need to exclude grey color, i did it for black as if now but the grey color have alot of variation to give in if condition may i know how can i use it.
if style.find("color")>=0:
aux = style[style.find("color"):]
aux = aux[0:aux.find(";") + 1]
if aux.find('#000000') < 0 and aux.find('black') < 0 and aux.find('#000') < 0:
use_raw = '%s%s' % (use_raw, aux)
This how i am exlcuding black, but here i want to exclude grey too.