diff --git "a/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/php/kodenook.php" "b/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/php/kodenook.php" new file mode 100644 index 0000000000..23381a2e7a --- /dev/null +++ "b/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/php/kodenook.php" @@ -0,0 +1,38 @@ +loadHTML($response); + libxml_clear_errors(); + + $links = $dom->getElementsByTagName('blockquote'); + $i = 0; + foreach ($links as $link) { + if ($i < 21) { + $i++; + continue; + } + + echo $link->textContent . PHP_EOL; + } +} + +scraping();