On Thu, Nov 16, 2017 at 10:47 PM, Craig Russell <apache....@gmail.com> wrote: > I found this: > > http://geoiplookup.net/xml-api/ > > http://api.geoiplookup.net/?query=73.15.26.163 > The XML result is as follows: > > <results> > <result> > <ip>73.15.26.163</ip> > <host>73.15.26.163</host> > <isp>Comcast Cable</isp> > <city>San José</city> > <countrycode>US</countrycode> > <countryname>United States</countryname> > <latitude>37.34220</latitude> > <longitude>-121.88330</longitude> > </result> > </results> > > Sounds exactly like what we (I) want. Just need to figure out how to change > San José to San José.
An XML parser should be able to do that for you. http://www.nokogiri.org/ is what other parts of Whimsy uses. Example usage: doc = Nokogiri.parse('<results><city>X</city></results>') puts doc.at('city').text ==> X > Craig - Sam Ruby >> On Nov 16, 2017, at 7:35 PM, Sam Ruby <ru...@intertwingly.net> wrote: >> >> On Thu, Nov 16, 2017 at 7:36 PM, Craig Russell <apache....@gmail.com> wrote: >>> >>> I'd like to get as much information about the invitee as is possible from >>> the browser. I understand we can get IP address. Can we get country, city, >>> GPS? >> >> There appears to be a tool named 'geoiplookup' that can be installed >> on macs with brew and on ubuntu with apt-get. I don't know anything >> about it. > > Craig L Russell > Secretary, Apache Software Foundation > c...@apache.org http://db.apache.org/jdo >