mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-02-04 05:36:18 +00:00
44 lines
750 B
PHP
44 lines
750 B
PHP
<?php
|
|
|
|
// Original code: The Wizard of DATz
|
|
|
|
print "<pre>";
|
|
|
|
$new = 0;
|
|
$old = 0;
|
|
|
|
for ($x = 1; $x < 6; $x++)
|
|
{
|
|
$query = get_data("http://blog.naver.com/PostList.nhn?from=postList&blogId=kevinhwsohn¤tPage=".$x);
|
|
$query = explode("encodedAttachFileUrl': '", $query);
|
|
$query[0] = null;
|
|
foreach ($query as $row)
|
|
{
|
|
if ($row)
|
|
{
|
|
$url = explode("'", $row);
|
|
$url = $url[0];
|
|
$title = explode("/", $url);
|
|
$title = $title[count($title) - 1];
|
|
if (!$r_query[$title])
|
|
{
|
|
$found[] = array($url, $title);
|
|
$r_query[$title] = true;
|
|
$new++;
|
|
}
|
|
else
|
|
{
|
|
$old++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
print "found new ".$new.", old ".$old."\n";
|
|
|
|
foreach ($found as $row)
|
|
{
|
|
print "<a href=".$row[0]." target=_blank>".$row[1]."</a>\n";
|
|
}
|
|
|
|
?>
|