Result:
- Name Christian Heilmann
- Location London, UK
- Web http://christianh...
- Bio ʕ •ᴥ•ʔ Mozilla Developer Evangelist - all things open web, HTML5, writing and working together. Portfolio: http://icant.co.uk
Source:
$url = 'http://twitter.com/codepo8';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
$output = preg_replace('/.*(<div id="profile"[^>]+>)/msi','$1',$output);
$output = preg_replace('/<hr.>.*/msi','',$output);
$output = preg_replace('/<?table>/','',$output);
$output = preg_replace('/<(?)tr>/','<$1ul>',$output);
$output = preg_replace('/<(?)td>/','<$1li>',$output);
echo $output;