Search the Community
Showing results for tags 'source web ie _ie'.
-
So I'm making script that should source one website and read info I need from it. I can do it as straight request and it's working fine, but if I generate link of website with another script and pass it into this mining part it just return nothing. Hope someone can enlighten me whats mistake in code. If I do it like this (directly setting path) it works flawlessly. $s_URL = "http://www.njuskalo.hr/procesori/cpu-amd-sempron-3400-x64-am2-oglas-9288094" $source = _INetGetSource ( $s_URL) $string = BinaryToString($source) $cijena = _StringBetween($string, "cijena:", " kn") Local $zaDBcijena = StringStripWS($cijena[0], 3) MsgBox(0, "out", $zaDBcijena) But if do it as part of other script it simply doesn't work: procesor() Func procesor() Local $i = 0 $s_URL = "http://www.njuskalo.hr/procesori" $source = _INetGetSource ( $s_URL) $string = BinaryToString($source) Global $url = _StringBetween($string, '<div class="image"><a href="', '"><img class="img_var') $size = UBound ( $url ) While $i < $size $lokacija = $s_URL & $url[$i] otvaranje() $i = $i + 1 WEnd EndFunc ;~ //Pregledavanje oglasa Func otvaranje() $s_URL = $lokacija $source = _INetGetSource ($s_URL) $string = BinaryToString($source) $cijena = _StringBetween($string, "cijena:", " kn") Local $zaDBcijena = StringStripWS($cijena[0], 3) MsgBox(0, "out", $zaDBcijena) EndFunc Any ideas is highly appreciated. Edit 1: So after getting over code line by line over and over it's obvious that this line is not working but why it's still mystery: $source = _INetGetSource ( $s_URL)