Example #1
0
    def get(self):
        
        oauth = UserOAuth("adaythere")
        conn = Connection(oauth)

        res = conn.get("/1.1/geo/search.json?ip=" + self.ipaddr)

        return (res.status == 200, res.read())
Example #2
0
    def __getFromTwitter(self):

        oauth = UserOAuth("adaythere")
        conn = Connection(oauth)

        res = conn.get("/1.1/geo/search.json?query=" + urllib.quote(self.place))

        return (res.status == 200, res.read())