Example #1
0
def groups(locations):
    topic_ids = topics.select_topic_ids(params.topic_order, params.topic_limit)
    print topic_ids

    created_time = (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), )
    for location in locations:
        print location, 'start'
        for topic_id in topic_ids:
            api_groups.main(topic_id, created_time, location)
Example #2
0
def groups(locations):
    topic_ids, keywords = topics.select_topic_ids(params.topic_order,
                                                  params.topic_limit)
    #print keywords

    created_time = (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), )
    for location in locations:
        print location, 'start'
        i = 0

        for (topic_id) in (topic_ids):
            api_groups.main(topic_id, created_time, location, keywords[i])
            i += 1
Example #3
0
    #         return ''
    # else:
    #     return response


def inspect_function(attr, key, grp_index, response):
    if attr in response[grp_index]:
        return (response[grp_index][attr], )
    else:
        return (None, )
        print "none"


if __name__ == "__main__":
    created_time = (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), )
    locations, words = adjustsettings.pull_params()
    print locations

    for location in locations:
        main(21681, created_time, location, 'startup')

    print params.topic_order
    print params.topic_limit

    topic_ids, keyword = topics.select_topic_ids(params.topic_order,
                                                 params.topic_limit)
    #   created_time= (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),)
    print topic_ids
    # for topic_id in topic_ids:
    #     main(topic_id, created_time, location)
Example #4
0
def groups():
    topic_ids = topics.select_topic_ids(params.topic_order, params.topic_limit)
    created_time = (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), )
    topic_ids = [131343, 108403]
    for topic_id in topic_ids:
        api_groups.main(topic_id, created_time)
Example #5
0
def groups():
    topic_ids = topics.select_topic_ids(params.topic_order, params.topic_limit)
    created_time = (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), )
    # for topic_id in topic_ids:
    # 	api_groups.main(topic_id, created_time)
    print topic_ids, 'yes'
Example #6
0
def groups():
    topic_ids = topics.select_topic_ids(params.topic_order, params.topic_limit)
    created_time = (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), )
    topic_ids = [19882, 21681, 108403, 1954, 128595, 26643, 21808]
    for topic_id in topic_ids:
        api_groups.main(topic_id, created_time)