0

I am tring to fetch woeid through location. Using Python 3.8 but its throw error: raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 502: Cannot find server.

import tweepy
import twitter
import yweather
consumerKey = "jbdfkjds"
consumerSecret = "sdfkjdjkf"
accessToken = "hide"
accessTokenSecret = "hidden"
auth = tweepy.OAuthHandler(consumerKey, consumerSecret)
auth.set_access_token(accessToken, accessTokenSecret)
api = tweepy.API(auth)

#woeid finder
client = yweather.Client()
wid = client.fetch_woeid("USA")
print(wid)

Error Code: here is my terminal Error screenshot

Please tell me why is it throwing error and how i solve this error????

Lovelesh
  • 1
  • 1

0 Answers0