def __init__(self, config): UrlHelper.__init__(self, config) self.clear_title = False self.provides = [ 'title', 'url' ] domains = [ 'youtube\.com', 'youtu\.be' ] self.url_regex = re.compile("(" + string.join(domains,"|") + ")/.*")
def __init__(self, config): UrlHelper.__init__(self, config) self.provides = [ 'title', 'description' ] self.clear_title = True self.url_regex = re.compile("soundcloud.com.*") self.client = soundcloud.Client(client_id=config['client_id'])
def __init__(self, config): UrlHelper.__init__(self, config) self.clear_title = True self.provides = [ 'title', 'url' ] domains = [ "bit\.ly", # Bitly "goo\.gl", # Google "kck\.st", # Kickstarter "sbn\.to" # SBNation ]; self.url_regex = re.compile("(" + string.join(domains,"|") + ")/.*")
def __init__(self, config): UrlHelper.__init__(self, config) self.provides = [ 'description' ] self.clear_title = True self.url_regex = re.compile("twitter.com.*status") self.twitterApi = twitter.Api( consumer_key=config['consumer_key'], consumer_secret=config['consumer_secret'], access_token_key=config['access_token_key'], access_token_secret=config['access_token_secret'])
def __init__(self, config): UrlHelper.__init__(self, config) self.clear_title = True self.url_regex = re.compile(".*urbandictionary.com/define.php.*") self.provides = [ 'title', 'description' ]
def __init__(self, config): UrlHelper.__init__(self, config) self.clear_title = True self.url_regex = re.compile("imgur.com/(\S+)\....") self.provides = [ 'title' ]
def __init__(self, config): UrlHelper.__init__(self, config) self.clear_title = True self.url_regex = re.compile("readability.com/articles/.*") self.provides = [ 'title', 'url' ]
def __init__(self, config): UrlHelper.__init__(self, config) self.clear_title = True self.url_regex = re.compile("wiki.dosburros.com/.*") self.provides = [ 'description', 'url' ] self.config = config
def __init__(self, config): UrlHelper.__init__(self, config) self.url_regex = re.compile('^(\w*\s*\|\s*|)@calc (.*)') self.appid = config['appid']
def __init__(self, config): UrlHelper.__init__(self, config) self.url_regex = re.compile('http://www.wolframalpha.com/input/\?i=(.*)') self.appid = config['appid']