We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e88a83 commit ab28edeCopy full SHA for ab28ede
README.md
@@ -33,9 +33,11 @@ Download the tarball, untar and run `python setup.py install`
33
pyloc.json # Returns the information as JSON parsed to a dictionary
34
pyloc.xmltext # Returns the information as an xml string
35
pyloc.xml # Returns the information as an XML Element Tree
36
+
37
"""
38
The following returns the information as a python object
39
40
41
pylocinfo = pyloc.info
42
print pylocinfo.ip # '8.8.8.8'
43
print pylocinfo.city # 'Mountain View, CA'
@@ -44,7 +46,6 @@ Download the tarball, untar and run `python setup.py install`
44
46
print pylocinfo.latitude # 37.402
45
47
print pylocinfo.longitude # -122.078
48
-
49
50
If you're getting the info for multiple IP addresses, you don't need to
51
create multiple PyLocation objects
0 commit comments