JSFiddle - React, Tailwind, and code Playground
by orthosie
HTML
<?php
$burl = "http://en.wikipedia.org/wiki/List_of_Tamil_film_actors";
$burl = "https://en.wikipedia.org/wiki/Category:Tamil_playback_singers";
$burl = "https://en.wikipedia.org/wiki/Lists_of_Tamil-language_films";
$dom = new DomDocument();
$html = file_get_contents($burl);
@$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
$qlist = $xpath->query("//ul/li/a");
foreach ($qlist as $q)
{
$name = trim($q->nodeValue) ;
$ref = trim($q->getAttribute("href"));
if ( !empty($name) && !empty($ref) )
print $name . ", $ref\n";
}
?>