2007. 6. 29. 15:01

[갈쿠리패턴] 지마켓


<?php
function voidPrint(&$val) {
 print_r($val);
}

$buf = new GalKuRi;
$buf->voidSetPage('page','voidPrint',1);

$buf->voidSetSkipOffset('_default_','<input type="checkbox" name="goodscode"');

$buf->voidSetPattern('goods_name','<input type="hidden" name="gd_nm" value="','"');
$buf->voidSetPattern('content_url','<a href="','"');
$buf->voidSetPattern('image_url','<img src="','"');
$buf->voidSetPattern('price',"<font color=\"4A789E\"><font color='4A789E'>",'<',',');

$buf->voidParsePage('http://www.gmarket.co.kr/challenge/neo_category/html_small_category/small_category_300004032.asp?gdsc_cd=300004032&link_type=LIST');
?>

2007. 6. 29. 15:00

[갈쿠리패턴] 옥션


<?php
function voidPrint(&$val) {
 print_r($val);
}

$buf = new GalKuRi;
$buf->voidSetPage('page','voidPrint',1);

$buf->voidSetSkipOffset('_default_','<table class="listView" border="0" cellpadding="0" cellspacing="0" align="NotSet" style="width: 900px" >');

$buf->voidSetPattern('image',"<img src='","'",'');
$buf->voidSetPattern('content',"<a target=\"_top\" href='","'",'');
$buf->voidSetPattern('name','class="itemName">','</a>','');
$buf->voidSetPattern('price','<div style="FONT-WEIGHT: bold; COLOR: #ff8004">','</div>',',');

$buf->voidParsePage('http://listings.auction.co.kr/category/list.aspx?category=01180000&frm=home');
?>

2007. 6. 29. 15:00

[갈쿠리패턴] 디엔샵


<?php
function voidPrint(&$val) {
 print_r($val);
}

$buf = new GalKuRi;
$buf->voidSetPage('DTYPE=IMAGE&pageNo=','voidPrint',1);

$buf->voidSetSkipOffset('_default_','<form name="prodlist"');

$buf->voidSetCookie('ACODE','1ltjzE.wkt10');
$buf->voidSetCookie('tcateid','D42414');
$buf->voidSetCookie('pmmcBGIBLE8BRMUSEGM2B78CVG78KJ4','0');
$buf->voidSetCookie('pmmczGIBLE8BRMUSEGM2B78CVG78KJ4','1');

$buf->voidSetPattern('image_url','<img src="http://shopimage.hanmail.net/m_productimages/','"');
$buf->voidSetPattern('content_url','<a href="','"');
$buf->voidSetPattern('goods_name','>','</a>');
$buf->voidSetPattern('price','<strong class="price">','원',',');

$buf->voidParsePage('http://dnshop.daum.net/front/category/DetailCategory?CID=D42414');
?>

2007. 6. 29. 14:59

[프로그램] 갈쿠리 v1.0.2



멤버변수 초기화 메소드 voidReset() 추가