Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/m/a/max-3.6/max/ASObjects.py   max(Download)
# -*- coding: utf-8 -*-
from max.rest.utils import formatMessageEntities, findHashtags, findKeywords
from max.MADObjects import MADDict
from hashlib import sha1
from datetime import datetime
            self.processFields()
            self.data['content'] = formatMessageEntities(self.data['content'])
            hashtags = findHashtags(self.data['content'])
            if hashtags:
                self.data['_hashtags'] = hashtags
            self.processFields()
            self.data['content'] = formatMessageEntities(self.data['content'])
            hashtags = findHashtags(self.data['content'])
            if hashtags:
                self.data['_hashtags'] = hashtags

src/b/i/bigmax-3.5.1/bigmax/views/maintenance.py   bigmax(Download)
from pyramid.view import view_config
from bigmax.views.api import TemplateAPI
from max.rest.utils import findKeywords, findHashtags
 
 
 
            keywords = findKeywords(activity['object']['content'])
            hashtags = findHashtags(activity['object']['content'])
 
            replies = activity.get('replies', {}).get('items', [])
            for reply in replies:
                keywords.extend(findKeywords(reply.get('content', u'')))
                hashtags.extend(findHashtags(reply.get('content', u'')))