代码如下。
$string = "抖音1.05 FuF:/ 复制打开抖音,看看【乐阳ing的作品】一辈子不结婚会有什么后果?
";
$api ='
';
preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $string, $match);
$subject = array(
"title" =>$match [0] );
$resp = file_get_contents("{$api}?url={$match[0]}");
print_r($match[0]);
echo $resp;
Array
(
[0] => https://v.douyin.com/2XfABaB/
)
{
"code": 201,
"msg": "不支持您输入的链接"
}
举报 0