import hashlib
import json
import re
from collections import namedtuple
import requests
from setting import WECHAT_WARNING_URL,WECHAT_WARNING_PHONE,WARNING_INTERVAL,WECHAT_WARNING_ALL
import bson
from feapder.utils.log import log
from feapder.db.mongodb import MongoDB
SearchText = namedtuple('SearchText', ['total'])
def substitute(html_str):
"""HTML 替换"""
patterns = {
'': '',
'"': "'",
'\n': '',
'\xa0': "",
'': '',
' ': '',
'': '',
'': '',
'
',
'