Search the Community
Showing results for tags 'php-simple-html-dom'.
-
Labdien. No Tripavisor profila lapas cenšos noskračot atsauksmes rakstītāja avatar bildi, bet saits izmanto lazyload, kas img src tur nevis atribūtā, bet footerī un tikai pie page load ielādē bildes. Līdz ar to mani panākumi ar PHP Simple HTML DOM izpaliek,nevaru neko noselektēk, jo nav jau ko. Avatars divs: <div class="avatar profile_CF48B2B4A31B43EC96F0561F498CE6BF "> <a onclick=""> <img id="lazyload_-247847544_0" height="74" width="74" class="avatar potentialFacebookAvatar avatarGUID:CF48B2B4A31B43EC96F0561F498CE6BF" src="http://media-cdn.tripadvisor.com/media/photo-l/05/f3/67/c3/lilrazzy.jpg" /> </a> </div> Un Ir js masīvs, kas stāv footerī kur katram img#lazyload_-* pretī ir interesējošais img src: var lazyImgs = [ {"id":"lazyload_-759354445_0","tagType":"img","scroll":true,"priority":100,"data":"http://media-cdn.tripadvisor.com/media/photo-l/05/f3/67/c3/lilrazzy.jpg"} , {"id":"lazyload_-759354445_1","tagType":"img","scroll":true,"priority":100,"data":"http://c1.tacdn.com/img2/icons/gray_flag.png"} , {"id":"lazyload_-759354445_2","tagType":"img","scroll":true,"priority":100,"data":"http://media-cdn.tripadvisor.com/media/photo-l/01/2a/fd/98/avatar.jpg"} , {"id":"lazyload_-759354445_3","tagType":"img","scroll":true,"priority":100,"data":"http://c1.tacdn.com/img2/icons/gray_flag.png"} , {"id":"lazyload_-759354445_4","tagType":"img","scroll":true,"priority":100,"data":"http://media-cdn.tripadvisor.com/media/photo-l/01/2e/70/5e/avatar036.jpg"} , {"id":"lazyload_-759354445_5","tagType":"img","scroll":false,"priority":100,"data":"http://c1.tacdn.com/img2/x.gif"} U.T.T. Kā no remote url izvilkt interesējošo img src. Pieduriens.