Exemplo n.º 1
0
 def get(self, name):
     client = Wunderground()
     self.finish(client.conditions(name))
Exemplo n.º 2
0
 def get(self):
     client = Wunderground()
     q = self.request.get("q")
     results = client.city_search(q)
     self.finish([{"name": r["name"], "uri": "/wunderground/conditions%s" % r["l"]} for r in results])