|
|
@ -34,6 +34,8 @@ class Index extends CI_Controller {
|
|
|
|
if ($key_city == $city) {
|
|
|
|
if ($key_city == $city) {
|
|
|
|
foreach ($page_mark as $page_num) {
|
|
|
|
foreach ($page_mark as $page_num) {
|
|
|
|
$page_url = str_replace('{PAGENUM}', $page_num, $item_url);
|
|
|
|
$page_url = str_replace('{PAGENUM}', $page_num, $item_url);
|
|
|
|
|
|
|
|
//使用代理来请求,国内直接访问会很慢
|
|
|
|
|
|
|
|
$page_url=str_replace('https://www.tripadvisor.com', 'http://47.91.16.199:5052', $page_url);
|
|
|
|
$content = GET_HTTP($page_url);
|
|
|
|
$content = GET_HTTP($page_url);
|
|
|
|
if (!empty($content)) {
|
|
|
|
if (!empty($content)) {
|
|
|
|
$html_object = str_get_html($content);
|
|
|
|
$html_object = str_get_html($content);
|
|
|
|