lundi 1 février 2021

Python Selenium - How to crawl a specific element based on another element [Web Crawling]

I need to crawl data from a website. The data is presented in cards with a lot of elements in it. Here's the element I need to crawl:

<div class="column cartola-atletas__posicao cartola-atletas__posicao--parciais" ng-bind="time.posicoes[atleta.posicao_id]['nome']">POSITION1</div>

I have several cards like these, and crawling data from them is alright.

My problem: one of the cards is "flagged" with another element in it. It has an svg in it as a "flag". I want to crawl these cards, however I want to know in my code when the card I'm crawling is "flagged".

How should I do this?




Aucun commentaire:

Enregistrer un commentaire