tweepy 2.3 doesn't work with a script for older version - python twitter -
i have python script parse twitter work old tweepy version:
consumer_key = '+++' consumer_secret = '+++' access_key = '+++' access_secret = ''+++' auth = tweepy.oauthhandler(consumer_key, consumer_secret) auth.set_access_token(access_key, access_secret) api = tweepy.api(auth) json_user_timeline = tweepy.binder.bind_api( path = '/statuses/user_timeline.json', payload_type = 'json', payload_list = true, allowed_param = ['id', 'user_id', 'screen_name', 'since_id', 'max_id', 'count', 'page', 'include_rts']) d={} a=[] h = htmlparser.htmlparser() tweet in tweepy.cursor(json_user_timeline, api, screen_name='++user_name++', count=200, include_rts=true).items(200): ......... .........
now have upgraded tweepy 2.3 , error:
allowed_param = ['id', 'user_id', 'screen_name', 'since_id', 'max_id', 'count', 'page', 'include_rts']) file "build/bdist.linux-x86_64/egg/tweepy/binder.py", line 21, in bind_api file "build/bdist.linux-x86_64/egg/tweepy/binder.py", line 23, in apimethod keyerror: 'api'
why?
thanks lot
Comments
Post a Comment