Skip to content
Advertisement

how to get the href link of latest version only in Selenium python

I want the link of latest version of csv . If new version will come then I my program will pick latest href link.

Output :- https://www.nucc.org/images/stories/CSV/nucc_taxonomy_201.csv

JavaScript

enter image description here

Advertisement

Answer

iv looked at the website and its seems that you can do that by selenium “find_element_by_xpath”. iv attached a photo.enter image description here

so the right XPATH IS

JavaScript

please check if its working again when the new version is coming.

and then you can look for it with this command :

JavaScript

let me know if it was helful.

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