from tweepy import Stream from tweepy import OAuthHandler from tweepy.streaming import StreamListener import MySQLdb import time import json
# replace mysql.server with "localhost" if you are running via your own server! # server MySQL username MySQL pass Database name. # MySQL server , username, password and databasename. conn = MySQLdb.connect("localhost", "root", "adminremoved", "adminremoved")
You must be logged in to post. Please login or register an account.
I went ahead and removed your keys and database password. Try to not post that information. Error 401 is an authentication error with Twitter. Maybe your account isn't yet verified? I seem to recall you need to confirm your email for apps now. Maybe also typoed some of your auth info? For more information on twitter error codes: https://dev.twitter.com/overview/api/response-codes
-Harrison 9 years ago
You must be logged in to post. Please login or register an account.