I am simply trying to get the username and I end up with above error. My internet connection uses proxy and I have already modified my code to use urllib2 but nothing seems to be working here in below code.
import tweepy
import dbapi
import urllib, urllib2, httplib
proxy_support = urllib2.ProxyHandler({"http":'proxyurl'})
opener = urllib2.build_opener(proxy_support,urllib2.HTTPHandler)
urllib2.install_opener(opener)
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
print(api.me().screen_name)
Any help will be really appreciated