Exemple #1
0
def get():
    consumer_key = getkey.get_ckey()
    consumer_secret = getkey.get_ckey_s()
    access_token = getkey.get_atoken()
    access_token_secret = getkey.get_atoken_s()
    auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
    auth.set_access_token(access_token, access_token_secret)

    api = tweepy.API(auth,
                     wait_on_rate_limit=True,
                     wait_on_rate_limit_notify=True)

    return api
Exemple #2
0
import tweepy
import key_module as getkey
from pprint import pprint
import csv

consumer_key = getkey.get_ckey()
consumer_secret = getkey.get_ckey_s()
access_token = getkey.get_atoken()
access_token_secret = getkey.get_atoken_s()
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth)

#status_list = api.home_timeline()


#c96_list=[[]]
def get():
    ill_list = []

    f = open("../myname.txt", "r")
    myname = f.read()
    f.close()

    screen_name = myname  #リスト作成者の@~~の~~
    #listname="illust_comic" #リストの名前
    listname = 'ic'
    for member in tweepy.Cursor(api.list_members,
                                slug=listname,
                                owner_screen_name=screen_name).items():