."/>

."/>

"/>
خرید بک لینک
I'm trying to parse some HTML with C# but have run into a problem with the tags around listing URLs being inconsistent.

Code:

<ul class="contact clearfix">
                                       
                                            <h4>Visit Site:</h4>
                                            <strong><span style="font-size: 12px;font-weight: bold;color:#228fbb;">www.blauel.com/</span></strong>
</ul>

Code:

<h4>
                                                Visit Site:</h4>
                                            <strong><a href="http://ps-architects.co.uk/" target="_blank" >
                                                ps-architects.co.uk/
                                            </a></strong></li>
                                           
                                        <li>
                                            <h4>

Code:

<ul class="contact clearfix">
                                       
                                            <h4>Visit Site:</h4>
                                            <strong><span style="font-size: 12px;font-weight: bold;color:#228fbb;">www.bbm-architects.co.uk/</span></strong>
                                           
                                    </ul>

For other items pulled from the HTML, I'd doing something like find the index of "Visit Site:" (or the tag marking the element like for <Name>listing name</name>) and then get everything from the end of that, the >, until hitting a <. But with what comes between the visit site and the actual url varying, and being unable to do anything about that, I'm not sure how I can get just the url correctly. Is there any good way to do this?

برچسب: نویسنده: آیلین رضوانی تاريخ: سه شنبه 5 دی 1396 ساعت: 14:37

صفحه بندی