def scrape_stylebox (file1): """ Get the style box for the fund """ try: from modules import common str_small = 'Small' str_med = 'Medium' str_large = 'Large' str_value = 'Value' str_blend = 'Blend' str_growth = 'Growth' if common.is_str_in_file (str_stylebox (1), file1): return [str_large, str_value] elif common.is_str_in_file (str_stylebox (2), file1): return [str_large, str_blend] elif common.is_str_in_file (str_stylebox (3), file1): return [str_large, str_growth] elif common.is_str_in_file (str_stylebox (4), file1): return [str_med, str_value] elif common.is_str_in_file (str_stylebox (5), file1): return [str_med, str_blend] elif common.is_str_in_file (str_stylebox (6), file1): return [str_med, str_growth] elif common.is_str_in_file (str_stylebox (7), file1): return [str_small, str_value] elif common.is_str_in_file (str_stylebox (8), file1): return [str_small, str_blend] elif common.is_str_in_file (str_stylebox (9), file1): return [str_small, str_growth] else: return [None, None] except: return [None, None]