TRY:
//main//div[@class="MzIVE isCYo"]//li//a/div[2]/div[1]
//main//ul[@class="DSinh"]/li//a
https://www.tripadvisor.co.uk/Tourism-g2467830-Central_Province-Vacations.html
--------------- Alle ----------
- - - - - - - - - - - - - - - - - - - - - -
12
https://www.tripadvisor.co.uk/Tourism-g2467830-Central_Province-Vacations.html
//main//ul[@class="DSinh"]//ul[@class="zHxHb"]/li[1]//picture/img
--- 1 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/ed/85/6b/um-palacio-no-topo-da.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/ed/85/6b/um-palacio-no-topo-da.jpg?w=1200&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/ed/85/6b/um-palacio-no-topo-da.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 428
[alt] =>
[loading] => lazy
)
)
--- 2 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/31/67/5d/kandy-lake-and-the-temple.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/31/67/5d/kandy-lake-and-the-temple.jpg?w=900&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/31/67/5d/kandy-lake-and-the-temple.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
--- 3 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/22/a2/b0/2d/top-of-the-pidurangala.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/22/a2/b0/2d/top-of-the-pidurangala.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/22/a2/b0/2d/top-of-the-pidurangala.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
--- 4 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/df/bf/46/peradeniya-botanical.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/df/bf/46/peradeniya-botanical.jpg?w=1200&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/df/bf/46/peradeniya-botanical.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 398
[alt] =>
[loading] => lazy
)
)
--- 5 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/29/9d/fa/the-great-golden-buddha.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/29/9d/fa/the-great-golden-buddha.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/29/9d/fa/the-great-golden-buddha.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
--- 6 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/46/1e/13/img-20180227-161024-707.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/46/1e/13/img-20180227-161024-707.jpg?w=1000&h=700&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/46/1e/13/img-20180227-161024-707.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
--- 7 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/60/ff/c5/ambuluwawa-tower-is-the.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/60/ff/c5/ambuluwawa-tower-is-the.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/60/ff/c5/ambuluwawa-tower-is-the.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
--- 8 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/38/c6/c6/3-ramboda-falls.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/38/c6/c6/3-ramboda-falls.jpg?w=1200&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/38/c6/c6/3-ramboda-falls.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 401
[alt] =>
[loading] => lazy
)
)
--- 9 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/70/04/46/the-buddha-notice-the.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/70/04/46/the-buddha-notice-the.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/70/04/46/the-buddha-notice-the.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
--- 10 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/9a/0e/da/img-20191229-wa0123-largejpg.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/9a/0e/da/img-20191229-wa0123-largejpg.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/9a/0e/da/img-20191229-wa0123-largejpg.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
--- 11 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/16/d4/d5/1e/seetha-matha-temple.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/16/d4/d5/1e/seetha-matha-temple.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/16/d4/d5/1e/seetha-matha-temple.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
--- 12 ---
SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0e/53/64/a1/20170203-014610-largejpg.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0e/53/64/a1/20170203-014610-largejpg.jpg?w=700&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0e/53/64/a1/20170203-014610-largejpg.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 401
[alt] =>
[loading] => lazy
)
)
12
Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/ed/85/6b/um-palacio-no-topo-da.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/ed/85/6b/um-palacio-no-topo-da.jpg?w=1200&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/ed/85/6b/um-palacio-no-topo-da.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 428
[alt] =>
[loading] => lazy
)
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/31/67/5d/kandy-lake-and-the-temple.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/31/67/5d/kandy-lake-and-the-temple.jpg?w=900&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/31/67/5d/kandy-lake-and-the-temple.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
[2] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/22/a2/b0/2d/top-of-the-pidurangala.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/22/a2/b0/2d/top-of-the-pidurangala.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/22/a2/b0/2d/top-of-the-pidurangala.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
[3] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/df/bf/46/peradeniya-botanical.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/df/bf/46/peradeniya-botanical.jpg?w=1200&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/df/bf/46/peradeniya-botanical.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 398
[alt] =>
[loading] => lazy
)
)
[4] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/29/9d/fa/the-great-golden-buddha.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/29/9d/fa/the-great-golden-buddha.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0f/29/9d/fa/the-great-golden-buddha.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
[5] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/46/1e/13/img-20180227-161024-707.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/46/1e/13/img-20180227-161024-707.jpg?w=1000&h=700&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/46/1e/13/img-20180227-161024-707.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
[6] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/60/ff/c5/ambuluwawa-tower-is-the.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/60/ff/c5/ambuluwawa-tower-is-the.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/60/ff/c5/ambuluwawa-tower-is-the.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
[7] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/38/c6/c6/3-ramboda-falls.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/38/c6/c6/3-ramboda-falls.jpg?w=1200&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/11/38/c6/c6/3-ramboda-falls.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 401
[alt] =>
[loading] => lazy
)
)
[8] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/70/04/46/the-buddha-notice-the.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/70/04/46/the-buddha-notice-the.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/12/70/04/46/the-buddha-notice-the.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
[9] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/9a/0e/da/img-20191229-wa0123-largejpg.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/9a/0e/da/img-20191229-wa0123-largejpg.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/9a/0e/da/img-20191229-wa0123-largejpg.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
[10] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/16/d4/d5/1e/seetha-matha-temple.jpg?w=600&h=400&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/16/d4/d5/1e/seetha-matha-temple.jpg?w=1200&h=800&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/16/d4/d5/1e/seetha-matha-temple.jpg?w=600&h=400&s=1
[width] => 600
[height] => 400
[alt] =>
[loading] => lazy
)
)
[11] => SimpleXMLElement Object
(
[@attributes] => Array
(
[srcset] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0e/53/64/a1/20170203-014610-largejpg.jpg?w=600&h=-1&s=1 1x,https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0e/53/64/a1/20170203-014610-largejpg.jpg?w=700&h=-1&s=1 2x
[src] => https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0e/53/64/a1/20170203-014610-largejpg.jpg?w=600&h=-1&s=1
[width] => 600
[height] => 401
[alt] =>
[loading] => lazy
)
)
)