Extract values from multi lined url source

Hello,

I want extract multi values from multi url source to a csv text. Thank you very much for help.

my curl code : curl "http://www.web.com/cities/[1-1000]/city.html

Source code:

div class="clear"></div>

                    <table class="listing-details">
                        <tr>
                            <td class="icon"><img src="/theme/images/building.png" alt="address" /></td>
                                                <span class='streetaddress'>5149 West 84th Street</span>, <br />                                    </div>
                                    <span id='cityname' class='locality'>Yuma</span>, <span id='statename' class='region'>Arizona</span> <span class='postal-code'>85220</span></td>
                        </tr>
                            </td>
                            </tr>
                            
                        

                                                                                    <tr>
                                    <td class="icon"><img src="/theme/images/arrow.png" alt="website" /></td>
                                    <td>Visit <a href="http://www.web.com/" class="url" rel="nofollow">Web Optiq</a></td>
                                </tr>

Desire output:

 
"Web Optiq","http://www.web.com/","5149 West 84th Street Yuma, Arizona 85220"

Try

$awk -F "[<>]" '/streetaddress/{s=$3}
/cityname/{s=s" "$3""$5""$7" "$11}
/<td>Visit/{split($4,P,"\"");print "\""$5"\",\""P[2]"\",\""s"\""}' file

"Web Optiq","http://www.web.com/","5149 West 84th Street Yuma, Arizona 85220"