Skip to content
Advertisement

Python Selenium – href specific output

I have been working on a project to pull specific href links from a site. Everything is working but I also want to be able to pull only specific data from href link. I haven’t been able to figure that part out.

JavaScript

Here is the output

JavaScript

I’m trying to get the output to look like this

JavaScript

Advertisement

Answer

Use regex

JavaScript

Output

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement