Answer the question
In order to leave comments, you need to log in
Powershell+Selenium. How to avoid duplicate links?
Good afternoon. I'm trying to get links to materials through Selenium. I get it, but every link is duplicated... How can I fix this? Thanks in advance
Code:
[Reflection.Assembly]::LoadFrom("C:\selenium\net40\WebDriver.dll")
$url = "http://darksound.ru/industrial/"
$ie = New-Object OpenQA.Selenium.PhantomJS.PhantomJSDriver
$ie.Navigate().GoToUrl($url)
$ie.FindElementsByClassName("without").getattribute("href")
$ie.Quit()
http://darksound.ru/ebm/226371-haujobb-ninetynine-remastered-170.html
http://darksound.ru/ebm/226371-haujobb-ninetynine-remastered-170.html
http://darksound.ru/ebm/234763-delectro-mueve-tu-cuerpo-2017.html
http://darksound.ru/ebm/234763-delectro-mueve-tu-cuerpo-2017.html
http://darksound.ru/ebm/209497-amnistia-dawn-2cd-2016.html
http://darksound.ru/ebm/209497-amnistia-dawn-2cd-2016.html
http://darksound.ru/ebm/228677-va-gothic-compilation-part-64-2015.html
http://darksound.ru/ebm/228677-va-gothic-compilation-part-64-2015.html
http://darksound.ru/ebm/206737-va-virion-sequences-2000.html
http://darksound.ru/ebm/206737-va-virion-sequences-2000.html
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question