I want to use Python selenium to find the specific server on Speedtest website. For example, I want to find the server which its host-location is Dagupan City and host-sponsor is USATV One Inc. Below is how the html code looks like. There will be lots of the same classname inside. What should I do to match with two different values from this? Thanks!
<ul data-view-name="serverCollection" data-view-cid="view34" class=""><li data-model-cid="c184">
<a data-server-id="11886" data-https-host="1">
<span class="host-location">
Dagupan City
</span>
<span class="host-sponsor">
USATV One Inc
</span>
</a>
</li><li data-model-cid="c185">
<a data-server-id="25314" data-https-host="1">
<span class="host-location">
Park City, Utah
</span>
<span class="host-sponsor">
Utah Broadband
</span>
</a>
</li><li data-model-cid="c186">
<a data-server-id="14515" data-https-host="1">
<span class="host-location">
Nagaoka
</span>
<span class="host-sponsor">
CanopusAzusa
</span>
</a>
</li><li data-model-cid="c187">
<a data-server-id="14890" data-https-host="1">
<span class="host-location">
Jakarta
</span>
<span class="host-sponsor">
PT. Aplikanusa Lintasarta
</span>
</a>
</li></ul>