TahorSuiJurisBenYAH
New Member
- Joined
- Dec 21, 2015
- Messages
- 7
Hello,
How would I be able to extract the URL
- that is within the below class="rllt__action-button _Jrh" ?
Any and all suggestions, greatly appreciated.
REF:
Dim sDD As String
Dim aDD As Variant
'-------------------------------------------------
'GET WEBSITE - COLUMN 5/E
sDD = Trim(Doc.getElementsByClassName("rllt__action-button _Jrh")(0).outerHTML)
MsgBox sDD
aDD = Split(sDD, ",")
'ActiveSheet.Range("e" & x).Value = aDD(1)
'---------------------------------------------------
'
How would I be able to extract the URL
HTML:
http://www.koeppelnissan.com
Any and all suggestions, greatly appreciated.
REF:
Dim sDD As String
Dim aDD As Variant
'-------------------------------------------------
'GET WEBSITE - COLUMN 5/E
sDD = Trim(Doc.getElementsByClassName("rllt__action-button _Jrh")(0).outerHTML)
MsgBox sDD
aDD = Split(sDD, ",")
'ActiveSheet.Range("e" & x).Value = aDD(1)
'---------------------------------------------------
'
HTML:
<a class="rllt__action-button _Jrh" href="/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiQ3P6h_5zKAhUF7A4KHbLnACgQgU8IEzAA&url=http%3A%2F%2Fwww.koeppelnissan.com%2F&usg=AFQjCNGkovFpjdBhADg_eKigryNOkISaTQ" data-ved="0ahUKEwiQ3P6h_5zKAhUF7A4KHbLnACgQgU8IEzAA" onmousedown="return rwt(this,'','','','1','AFQjCNGkovFpjdBhADg_eKigryNOkISaTQ','','0ahUKEwiQ3P6h_5zKAhUF7A4KHbLnACgQgU8IEzAA','','',event)"><div class="_nMg"><span class="_Mrh"></span><div class="_Orh">Website</div></div></a>
Last edited by a moderator: