- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-01-2018 04:00 PM
Before I go down the route of writing a prototype (or attempting to), I was wondering if there was a prototype that I could use to read an IP list in this XML format. I would be interested in pulling out the address and country:
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:pingdom="http://www.pingdom.com/ns/PingdomRSSNamespace"> <channel> <title>Probe servers</title> <link>http://www.pingdom.com</link> <description>These are the servers that we use to check your site. You can use the IP numbers to open up for them in your firewall.</description> <language>en</language> <lastBuildDate>Fri, 01 Jun 2018 14:34:25 +0000</lastBuildDate> <docs>http://cyber.law.harvard.edu/rss/rss.html</docs> <atom:link href="https://my.pingdom.com/probes/feed" rel="self" type="application/rss+xml" /> <item> <guid isPermaLink="false">pingdom-probe-243</guid> <title>Oslo</title> <description>IP: 169.51.80.85; Hostname: s4038.pingdom.com; State: Inactive; Country: Norway; City: Oslo</description> <pingdom:ip>169.51.80.85</pingdom:ip> <pingdom:ipv6>2a03:8180:1601:3a::4038</pingdom:ipv6> <pingdom:hostname>s4038.pingdom.com</pingdom:hostname> <pingdom:country code="NO">Norway</pingdom:country> <pingdom:city>Oslo</pingdom:city> <pingdom:state>Inactive</pingdom:state> <pingdom:region>EU</pingdom:region> </item> <item> <guid isPermaLink="false">pingdom-probe-240</guid> <title>Paris</title> <description>IP: 169.51.2.22; Hostname: s4037.pingdom.com; State: Inactive; Country: France; City: Paris</description> <pingdom:ip>169.51.2.22</pingdom:ip> <pingdom:ipv6>2a03:8180:1301:146::4037</pingdom:ipv6> <pingdom:hostname>s4037.pingdom.com</pingdom:hostname> <pingdom:country code="FR">France</pingdom:country> <pingdom:city>Paris</pingdom:city> <pingdom:state>Inactive</pingdom:state> <pingdom:region>EU</pingdom:region> </item> <item> <guid isPermaLink="false">pingdom-probe-237</guid> <title>Huston, TX</title> <description>IP: 50.23.28.35; Hostname: s4036.pingdom.com; State: Inactive; Country: United States; City: Houston</description> <pingdom:ip>50.23.28.35</pingdom:ip> <pingdom:ipv6>2607:f0d0:1201:10d::4036</pingdom:ipv6> <pingdom:hostname>s4036.pingdom.com</pingdom:hostname> <pingdom:country code="US">United States</pingdom:country> <pingdom:city>Houston</pingdom:city> <pingdom:state>Inactive</pingdom:state> <pingdom:region>NA</pingdom:region> </item> <item>
Thank you,
Mike
06-07-2018 08:53 AM
Hi @MichaelPDean,
provided that you have a Pingdom Account, you could use its RESTFul API to get the list of probes in JSON format.
https://www.pingdom.com/resources/api/2.1#MethodGet+Probe+Server+List
That JSON document could be consumed directly by MineMeld using the SimpleJSON class.
06-07-2018 08:53 AM
Hi @MichaelPDean,
provided that you have a Pingdom Account, you could use its RESTFul API to get the list of probes in JSON format.
https://www.pingdom.com/resources/api/2.1#MethodGet+Probe+Server+List
That JSON document could be consumed directly by MineMeld using the SimpleJSON class.
06-07-2018 10:05 AM
Thank you, I will take a look at that (we do have a Pingdom account)
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!