Skip to content

Tag: selenium

Selenium element.text() is not considered as a string

Im trying to get an element name with python selenium and print it later but it throws following error: Code line looks like this: HTML element looks like this: I tried searcing for element by XPath but it seems not to be a reason for error… Answer To get a web element text you should apply .text on it,…

For loop with lot of different Urls

totally novice in python, after many youtube videos and tutorial i’m trying to scrape basketball starting lineups from flashscore. Here’s an example of a link: https://www.flashscore.it/partita/6PN3pAhq/#informazioni-partita/formazioni As you can see in the middle there’s a code (6PN3pAhq) t…