<div class="sizer-cropper" title="Black and White">
<div class="avatar-content">
<div data-group-nsid="[B]16978849@N00[/B]" class=" avatar group medium" title="Black and White" data-track="groupCardOtherClick"
style="background-image: url(//c2.staticflickr.com/2/1585/buddyicons/16978849@N00_r.jpg?1452275782);"></div>
</div>
<div class="text-content">
<div data-track="groupCardOtherClick" class="title">Black and White</div>
<div class="subtitle">
<span>Since 2004</span>
</div>
<div class="links">
<span><a data-track="groupCardOtherClick" href="/groups/[B]16978849@N00[/B]/members" data-rapid_p="36">
<i class="members-icon"></i>358.1K</a></span><span>
<a data-track="groupCardOtherClick" href="/groups/16978849@N00/pool" data-rapid_p="37">
<i class="photos-icon"></i>7.5M</a></span><span>
<a data-track="groupCardOtherClick" href="/groups/16978849@N00/discuss" data-rapid_p="38">
<i class="discussions-icon"></i>2.8K</a></span>
</div>
</div>
<a href="/groups/[B]16978849@N00/[/B]" data-track="groupCardOtherClick" class="click-anywhere no-outline" data-rapid_p="39"></a>
</div>
çekmek istediğim üstteki kodlarda 20 satırdaki gibi üstlerdede bulunan ->
16978849@N00 sadece bu kısım
<?php
function curl($url, $post=false)
{
$user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, $post ? true : false);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post ? $post : false);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
$icerik = curl_exec($ch);
curl_close($ch);
return $icerik;
}
function ara($bas, $son, $yazi)
{
@preg_match_all('/' . preg_quote($bas, '/') .
'(.*?)'. preg_quote($son, '/').'/i', $yazi, $m);
return @$m[1];
}
$site = "https://www.flickr.com/search/groups/?text=photos&sort=most-members";
$icerik = file_get_contents($site);
$getir = ara('class="click-anywhere no-outline">', '</td>', $icerik);
echo $getir[0];
?>kodlamam ise bu şekilde hata nerede acaba ? şimdiden teşekkürler.