Python API for The Fucking Weather (unofficial)
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Python module for, version 1.0.2
Copyright (C) 2013  Red Hat, Inc., and others.

This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See for more details.

- Colin Rice for fixing the (no-longer used) regexps to allow for
  negative temperatures


The code is self-documenting so you shouldn't have any problem using it.
The basic way to use it, if you're including it in a program, is:

>>> import thefuckingweather
>>> thefuckingweather.get_weather("Hell, MI")

and you'll get lots of return data. The data format is documented under
get_weather(). You can also run it from a shell: this output is pretty
to the average user but can also be parsed by the likes of sed.

The Git repository is located on GitHub:

This program comes without any warranty (as stated in the copyright
disclaimer), so please don't treat it as an actual weather reporting
system or as trustworthy.