예제 #1
0
파일: publish.py 프로젝트: hdemers/birdwtch
def process_tweets(tweets):
    geo.country(tweets)
    channels[tweet_channel].publish(keep(["coordinates", "lang", "origin", "origin_code"], tweets), "tweets")
    return len(tweets)
예제 #2
0
def process_tweets(tweets):
    geo.country(tweets)
    channels[tweet_channel].publish(
        keep(['coordinates', 'lang', 'origin', 'origin_code'], tweets),
        "tweets")
    return len(tweets)
예제 #3
0
def processor(tweets):
    pubsub.publish(keep(['coordinates'], tweets), "tweets")
    return len(tweets)