Coder Social home page Coder Social logo

yahoo_weather's Introduction

yahoo_weather's People

Contributors

craig88 avatar m-ahadi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

craig88

yahoo_weather's Issues

RUNTIME ERROR

FIRST TEST ERROR:
Tried as written with upper case Yahoo_Weather ----
Traceback (most recent call last):
File "irantest.py", line 4, in
data = Yahoo_Weather(APP_ID="xxx",
NameError: name 'Yahoo_Weather' is not defined

SECOND TEST ERROR:
Change to lower case yahoo_weather(APP_ID.... ---
Traceback (most recent call last):
File "irantest.py", line 6, in
apisecret="xxx")
TypeError: 'module' object is not callable

DIFFICULTY INSTALLING

Tried to install one file type and then the other - both failed:

pi@raspberrypi:~/yahoo_weather-1.0.5 $ sudo make yahoo_weather-1.0.5.tar.gz
make: *** No rule to make target 'yahoo_weather-1.0.5.tar.gz'. Stop.

pi@raspberrypi:~/Downloads $ pip install yahoo_weather-1.0.5-py3-none-any.whl
yahoo_weather-1.0.5-py3-none-any.whl is not a supported wheel on this platform.

Suggestions?

Best regards,
Al Adkins

Not working - URLs changed?

It seems that the URLs from the service changed:

HTTPSConnectionPool(host='weather-ydn-yql.media.yahoo.com', port=443): Max retries exceeded with url: /forecastrss?location=tehran&format=json&u=c&Yahoo-App-Id=XXXXXXXXX&oauth_timestamp=1644596601&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_nonce=83527990&oauth_consumer_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&oauth_signature=h2xC4EqIIE%2FHQsQ1JSXz1jBfY%2BM%3D (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10d2eef40>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
Traceback (most recent call last):
  File "yahoo-weather.py", line 9, in <module>
    print(data.condition.text)
AttributeError: 'YahooWeather' object has no attribute 'condition'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.