示例#1
0
def get_zuyakai(param):

    post_texts = get_evant_connpass_keyword(param, today)
    try:
        if post_texts is not None:
            post_tweet(post_texts)
    except Exception as e:
        print(e.args)
示例#2
0
def get_zuyakai(param):

    post_texts = get_evant_connpass_keyword(param, today)
    try:
        if post_texts is not None:
            post_tweet(post_texts)
    except Exception as e:
        print(e.args)
示例#3
0
def get_connpass(comms):

    for comm in comms:
        post_texts = get_evant_connpass(comm, today)

        for post_text in post_texts:
            post_tweet(post_text)
            time.sleep(10.0)
示例#4
0
def get_connpass(comms):

    post_texts = []
    for comm in comms:
        post_texts.extend(get_evant_connpass(comm, today))

    # イベントのIDでツイート
    event_ids = [55693, 55694,]
    post_texts.extend(get_event_connpass_id(today, event_ids))

    for post_text in post_texts:
        post_tweet(post_text)
        time.sleep(10.0)
示例#5
0
def get_doorkeepr(comm_names):

    # コミュニティの数でループ
    for comm_name in comm_names:
        # 投稿するテキストを取得する
        post_texts = get_event_doorkeepr(comm_name)
        try:
            # イベントの数分投稿する、無ければ抜ける
            if post_texts is None:
                continue
            for post_text in post_texts:
                post_tweet(post_text)
                time.sleep(30.0)
        except Exception as e:
            print(e.args)
示例#6
0
def get_doorkeepr(comm_names):

    # コミュニティの数でループ
    for comm_name in comm_names:
        # 投稿するテキストを取得する
        post_texts = get_event_doorkeepr(comm_name)
        try:
            # イベントの数分投稿する、無ければ抜ける
            if post_texts is None:
                continue
            for post_text in post_texts:
                post_tweet(post_text)
                time.sleep(30.0)
        except Exception as e:
            print(e.args)
示例#7
0
def get_connpass(comms):

    post_texts = []
    for comm in comms:
        post_texts.extend(get_evant_connpass(comm, today))

    # イベントのIDでツイート
    event_ids = [
        55693,
        55694,
    ]
    post_texts.extend(get_event_connpass_id(today, event_ids))

    for post_text in post_texts:
        post_tweet(post_text)
        time.sleep(10.0)
示例#8
0
def static_post(hour):
    # 時間固定ツイート
    if hour == 11 or hour == 12:
        post_text= get_lunch()
        post_tweet(post_text)

    elif hour == 21 or hour == 22:
        post_tweet("1日8時間睡眠のためにも寝る準備をしましょう!")

    else:
        post_tweet("にゃーん(社会性フィルター)")
示例#9
0
def static_post(hour):
    # 時間固定ツイート
    if hour == 11 or hour == 12:
        post_text = get_lunch()
        post_tweet(post_text)

    elif hour == 21 or hour == 22:
        post_tweet("1日8時間睡眠のためにも寝る準備をしましょう!")

    else:
        post_tweet("にゃーん(社会性フィルター)")