This script would have actually broken quite a while ago when the <b> tags were added to the v6 addresses in the hopes of people noticing the variance in them.
That said, you're going to hate me. That page will be changing yet again, and a bit more of a shift than before. However, there's now a new means of pulling the data, and this format isn't due for changing anytime soon.https://username:email@example.com/tunnelInfo.php
[?tid=tunnel_id] The option is... optional. Username and password are in the clear, but it is over HTTPS, and this mechanism lines up with the dyndns methods, but this data is read-only.
The return will be a XML formatted output of your tunnel specifics, similar to the following. If you pass the tid, you'll only get the one tunnel's data.
<?xml version="1.0" encoding="UTF-8"?>