It's just a simple program to download timeline tweet,I am calling my keys and then after authentication redirect it to download my tweet.
import tweepy
auth = tweepy.OAuthHandler('My consumer key', 'My consumer secret')
auth.set_access_token('My access token', 'My access token secret')
api = tweepy.API(auth)
public_tweets = api.home_timeline()
for tweet in public_tweets:
print (tweet.text)
But when I Execute this module, I get Error as:
Traceback (most recent call last):
File "C:/Python34/tweepy1.py", line 1, in <module>
import tweepy
File "C:\Python34\lib\site-packages\tweepy-3.4.0-py3.4.egg\tweepy\__init__.py", line 12, in <module>
from tweepy.models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResults, ModelFactory, Category
File "C:\Python34\lib\site-packages\tweepy-3.4.0-py3.4.egg\tweepy\models.py", line 7, in <module>
from tweepy.utils import parse_datetime, parse_html_value, parse_a_href
File "C:\Python34\lib\site-packages\tweepy-3.4.0-py3.4.egg\tweepy\utils.py", line 9, in <module>
import six
ImportError: No module named 'six'
I am really struck , I can't make out where I went wrong . I tried to find about this error but to no avail.