百度

百度

PHP解析百度图片搜索结果json中objURL图片原始地址函数

孤魂 发表了文章 • 0 个评论 • 732 次浏览 • 2016-11-17 09:01 • 来自相关话题

<?php
$str = 'ippr_z2C$qAzdH3FAzdH3Fojgojg_z&e3Bf5f5_z&e3Bv54AzdH3FrAzdH3Fda8a8a8nAzdH3Fda8a8a8n8m9bdc-8a0abn8cdb_z&e3B3r2';
function baidtu_uncomplie($k) {
$c = array('_z2C$q', '_z&e3B', 'AzdH3F');
$d = array('w' => "a", 'k' => "b", 'v' => "c", '1' => "d", 'j' => "e", 'u' => "f", '2' => "g", 'i' => "h", 't' => "i", '3' => "j", 'h' => "k", 's' => "l", '4' => "m", 'g' => "n", "5" => "o", 'r' => "p", 'q' => "q", "6" => "r", 'f' => "s", 'p' => "t", "7" => "u", 'e' => "v", 'o' => "w", "8" => "1", 'd' => "2", 'n' => "3", "9" => "4", 'c' => "5", 'm' => "6", "0" => "7", 'b' => "8", 'l' => "9", 'a' => "0", '_z2C$q' => ":", '_z&e3B' => ".", 'AzdH3F' => "/");
if (!$k || strpos($k, "http")) return $k;
$j = $k;
foreach ($c as $value) {
$j = str_replace($value, $d[$value], $j);
}
$arr = str_split($j);
foreach ($arr as $k => $v) {
if (preg_match('/^[a-w\d]+$/', $v)) $arr[$k] = $d[$v];
}
return implode('', $arr);
}
print_r(baidtu_uncomplie($str)); 查看全部
<?php
$str = 'ippr_z2C$qAzdH3FAzdH3Fojgojg_z&e3Bf5f5_z&e3Bv54AzdH3FrAzdH3Fda8a8a8nAzdH3Fda8a8a8n8m9bdc-8a0abn8cdb_z&e3B3r2';
function baidtu_uncomplie($k) {
$c = array('_z2C$q', '_z&e3B', 'AzdH3F');
$d = array('w' => "a", 'k' => "b", 'v' => "c", '1' => "d", 'j' => "e", 'u' => "f", '2' => "g", 'i' => "h", 't' => "i", '3' => "j", 'h' => "k", 's' => "l", '4' => "m", 'g' => "n", "5" => "o", 'r' => "p", 'q' => "q", "6" => "r", 'f' => "s", 'p' => "t", "7" => "u", 'e' => "v", 'o' => "w", "8" => "1", 'd' => "2", 'n' => "3", "9" => "4", 'c' => "5", 'm' => "6", "0" => "7", 'b' => "8", 'l' => "9", 'a' => "0", '_z2C$q' => ":", '_z&e3B' => ".", 'AzdH3F' => "/");
if (!$k || strpos($k, "http")) return $k;
$j = $k;
foreach ($c as $value) {
$j = str_replace($value, $d[$value], $j);
}
$arr = str_split($j);
foreach ($arr as $k => $v) {
if (preg_match('/^[a-w\d]+$/', $v)) $arr[$k] = $d[$v];
}
return implode('', $arr);
}
print_r(baidtu_uncomplie($str));

PHP解析百度图片搜索结果json中objURL图片原始地址函数

孤魂 发表了文章 • 0 个评论 • 732 次浏览 • 2016-11-17 09:01 • 来自相关话题

<?php
$str = 'ippr_z2C$qAzdH3FAzdH3Fojgojg_z&e3Bf5f5_z&e3Bv54AzdH3FrAzdH3Fda8a8a8nAzdH3Fda8a8a8n8m9bdc-8a0abn8cdb_z&e3B3r2';
function baidtu_uncomplie($k) {
$c = array('_z2C$q', '_z&e3B', 'AzdH3F');
$d = array('w' => "a", 'k' => "b", 'v' => "c", '1' => "d", 'j' => "e", 'u' => "f", '2' => "g", 'i' => "h", 't' => "i", '3' => "j", 'h' => "k", 's' => "l", '4' => "m", 'g' => "n", "5" => "o", 'r' => "p", 'q' => "q", "6" => "r", 'f' => "s", 'p' => "t", "7" => "u", 'e' => "v", 'o' => "w", "8" => "1", 'd' => "2", 'n' => "3", "9" => "4", 'c' => "5", 'm' => "6", "0" => "7", 'b' => "8", 'l' => "9", 'a' => "0", '_z2C$q' => ":", '_z&e3B' => ".", 'AzdH3F' => "/");
if (!$k || strpos($k, "http")) return $k;
$j = $k;
foreach ($c as $value) {
$j = str_replace($value, $d[$value], $j);
}
$arr = str_split($j);
foreach ($arr as $k => $v) {
if (preg_match('/^[a-w\d]+$/', $v)) $arr[$k] = $d[$v];
}
return implode('', $arr);
}
print_r(baidtu_uncomplie($str)); 查看全部
<?php
$str = 'ippr_z2C$qAzdH3FAzdH3Fojgojg_z&e3Bf5f5_z&e3Bv54AzdH3FrAzdH3Fda8a8a8nAzdH3Fda8a8a8n8m9bdc-8a0abn8cdb_z&e3B3r2';
function baidtu_uncomplie($k) {
$c = array('_z2C$q', '_z&e3B', 'AzdH3F');
$d = array('w' => "a", 'k' => "b", 'v' => "c", '1' => "d", 'j' => "e", 'u' => "f", '2' => "g", 'i' => "h", 't' => "i", '3' => "j", 'h' => "k", 's' => "l", '4' => "m", 'g' => "n", "5" => "o", 'r' => "p", 'q' => "q", "6" => "r", 'f' => "s", 'p' => "t", "7" => "u", 'e' => "v", 'o' => "w", "8" => "1", 'd' => "2", 'n' => "3", "9" => "4", 'c' => "5", 'm' => "6", "0" => "7", 'b' => "8", 'l' => "9", 'a' => "0", '_z2C$q' => ":", '_z&e3B' => ".", 'AzdH3F' => "/");
if (!$k || strpos($k, "http")) return $k;
$j = $k;
foreach ($c as $value) {
$j = str_replace($value, $d[$value], $j);
}
$arr = str_split($j);
foreach ($arr as $k => $v) {
if (preg_match('/^[a-w\d]+$/', $v)) $arr[$k] = $d[$v];
}
return implode('', $arr);
}
print_r(baidtu_uncomplie($str));