title: Find the User-Agent and Global IP address from using Python
body: <p>Is there a way to find the user-agent and global ip in particular json format? Help me out on this.
  Here is what I am trying have partial success in getting global IP but no information about user-agent.</p>
  
  <pre><code>import requests, json
  r = requests.get('http://httpbin.org/ip').json()
  print r['origin']
  </code></pre>
  
  <p>Above code returning me the Global IP but I want some information regarding on which platform I am connected to the particular URL. E.g. <code>'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36'</code>.</p>