sai8888sai 发表于 2021-11-3 15:14:25

瞅一瞅他趣app社区加密内容pojie采集,完整版规则

hot178 发表于 2021-11-8 16:42:56

<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
header("Content-type: text/html; charset=utf8");
function curl_post($header,$data,$url)
{
$ch = curl_init();
$res= curl_setopt ($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_HTTPHEADER,$header);
$result = curl_exec ($ch);
curl_close($ch);
if ($result == NULL) {
return 0;
}
return $result;
}

$url = 'http://www.123.com/fun/?act=jisuan_shipping_cost'; //要post的网址
$header = array("Host:www.123.com",
"Content-Type:application/x-www-form-urlencoded; charset=UTF-8",
'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36 SE 2.X MetaSr 1.0'
);
//post的header值,不同的值之间使用逗号分隔
$data = 'goods_id='.$LabelArray['goods_id'].'®ion=US&number=1&shipping_id=17&goods_price='.$LabelArray['价格']; //POST的值,可以引用标签的值
$ret = curl_post($header,$data,$url); //进行post请求,并把post的返回值赋值给$ret
$LabelArray['运费'] = $ret; //把$ret的值赋值给标签运费

echo serialize($LabelArray);
?>

hongzusheng 发表于 2022-10-28 12:51:28


回复一下了解看看!

test用户 发表于 2023-9-18 09:43:53

想看想看想看想看想看想看

spolarv 发表于 2023-11-24 11:13:09

他趣改版了。。。
页: 2 3 4 5 6 7 8 9 10 11 [12]
查看完整版本: 他趣app社区加密内容pojie采集,完整版规则