标签:
标题1下面的内容
content
<?php //按关键字下载职位信息的接口 class Download{ public function __construct(){ $this->_website = new LaGouWang(); } public function run(){ // $this->position(‘php‘, $px = ‘new‘); // $this->position(‘c++‘, $px = ‘new‘); $this->position(‘java‘, $px = ‘new‘); } public function position($kd, $px=‘default‘){ $positionIdSet = $this->_website->getSinglePositionIdSet($kd, $px); $model = new Model(get_class($this->_website). ‘_‘. $kd); foreach ($positionIdSet as $index => $positionId){ $html = new LaGouHtmlDom(); $html->loadFile($this->_website->getPositionUrl($positionId)); echo "$kd $index "; $model->insert($html->getJobRequestSet()); } } private $_website; }
我看看表格是长什么样子的 | ||
标签:
原文地址:http://www.cnblogs.com/fengyubo/p/4626857.html