Ben belirtilen kullanıcının tüm tweets kapma için bir fonksiyon yazmak istedim, ama sadece en son 20 döndürür.
Ben böyle bir şey geldi:
function getTweets($user) {
$page = file_get_contents("http://twitter.com/{$user}");
$from = strpos($page, "<ol id='timeline' class='statuses'>");
$to = strpos($page, "</ol>");
$length = $to - $from;
$page =substr($page, $from, $length);
echo $page;
}
getTweets('user_name');
Bu yuvarlak almak için bir yolu var mı?