async def _wash_license_plate_num_for_good_or_bad_content(content) -> str: """ 清洗车牌测吉凶 :param content: :return: """ content = wash_sensitive_info( data=content, replace_str_list=[('卜易居士|卜易居', '优秀网'), ('<div class=\"inform\">.*</div>', '</div>')], add_sensitive_str_list=[ '<p><strong>优秀网车牌祥批</strong></p>', '<p>以上结果为通用数理分析,如需全面掌握车牌号 <span class=\"red\">.*?</span> 带给你的机缘,可请优秀网结合 <strong>生辰八字</strong>进行测算,让你全面掌握车牌号带给你的机缘!可以为选车牌号提供参考。</p>' ], is_default_filter=False, is_lower=False, ) content = modify_body_p_typesetting(content=content) if content != '': # 牌照底纹蓝色 content = '<style>.cp{width:180px;margin:auto;} .cp ul{color:white;font-weight:bold;letter-spacing:2px;background-color:blue;padding:2px;} .cp ul li{border:2px solid #fff;text-transform:uppercase;font:normal normal 26px/30px Arial, Helvetica, sans-serif;list-style-type: none;padding-top:2px;} .zmdx{text-transform:uppercase;}</style>' + \ content else: pass return content
async def _wash_word_and_fortune_telling_content(content) -> str: """ 清洗测字算命 :param content: :return: """ content = wash_sensitive_info( data=content, replace_str_list=[ # 避免过度清洗 ('<div class=\"yunshi\">.*</div>', '</div>') ], is_default_filter=False, is_lower=False,) content = modify_body_p_typesetting(content=content) return content
async def _wash_constellation_pairing_content(content) -> str: """ 清洗星座配对 :param content: :return: """ content = wash_sensitive_info( data=content, replace_str_list=[ ('卜易居士|卜易居', '优秀网'), # 避免过度清洗 ('<div class=\"yunshi\">.*</div>', '</div>'), ], add_sensitive_str_list=None, is_default_filter=False, is_lower=False,) content = modify_body_p_typesetting(content=content) return content
async def _wash_phone_number_for_good_or_bad_luck_content(content) -> str: """ 清洗手机号码测吉凶 :param content: :return: """ content = wash_sensitive_info( data=content, replace_str_list=[('卜易居士|卜易居', '优秀网'), ('<div class=\"inform\">.*</div>', '</div>')], add_sensitive_str_list=[ '<p><strong>优秀网手机号吉凶祥批</strong></p>', '<p>以上结果为通用数理分析,如需全面掌握手机号码 <span class=\"red\">\d+</span> 带给您的机缘,可请优秀网结合您的 <strong>生辰八字</strong> 进行测算,可以为选手机号提供参考。</p>' ], is_default_filter=False, is_lower=False, ) content = modify_body_p_typesetting(content=content) return content
async def _wash_distribution_pairs_of_names_content(content) -> str: """ 姓名缘分测试 :param content: :return: """ content = wash_sensitive_info( data=content, replace_str_list=[ ('卜易居士|卜易居', '优秀网'), # 避免过度清洗 ('<div class=\"yunshi\">.*</div>', '</div>'), ], add_sensitive_str_list=[ '<small>www.buyiju.com/peidui/xmyf.php</small>' ], is_default_filter=False, is_lower=False,) content = modify_body_p_typesetting(content=content) return content