皮皮虾app视频无水印解析

@Ta 08-09 16:49 194点击
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  5. <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css">
  6. <title>皮皮虾视频无水印解析</title>
  7. <style>
  8. body { padding-top: 70px;}
  9. .foot{ text-align:center;}
  10. </style>
  11. </head>
  12. <body>
  13. <nav class="navbar navbar-default navbar-fixed-top">
  14.   <div class="container-fluid">
  15.     <div class="navbar-header">
  16.       <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
  17.         <span class="icon-bar"></span>
  18.         <span class="icon-bar"></span>
  19.         <span class="icon-bar"></span>
  20.       </button>
  21.       <a class="navbar-brand" href="/pipixia">皮皮虾视频无水印解析</a>
  22.     </div>
  23.     <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  24.       <ul class="nav navbar-nav">
  25.         <li><a href='#'>说明</a></li>
  26.       </ul>
  27.     </div>
  28.   </div>
  29. </nav>
  30. <div class="container">
  31. <div class="row">
  32. <h3 style="text-align:center;">皮皮虾视频</h3>
  33. <div class="col-md-12">
  34. <form action="" method="POST">
  35.     <div class="input-group" style="margin-top:25px;">
  36.       <input type="text" class="form-control" placeholder="输入分享链接 https://h5.hulushequ.com/item/6562792949205358861" name="url">
  37.       <span class="input-group-btn">
  38.         <button class="btn btn-default" type="submit">下载</button>
  39.       </span>
  40.     </div>
  41. </form>
  42. <?php
  43. if(isset($_POST['url'])){
  44. $url=htmlspecialchars($_POST['url']);
  45. if(preg_match("/[0-9]{19,19}/",$url,$a)){ //匹配字串中是否包至少19位到19位的数字
  46.     $url = 'https://h5.hulushequ.com/bds/webapi/item/detail/?item_id='.$a[0];
  47. 	$UserAgent = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.21022; .NET CLR 1.0.3705; .NET CLR 1.1.4322)';
  48.     // 初始化,获得一个cURL句柄
  49. 	$ch = curl_init();
  50. 	// 设置选项
  51. 	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, '0');//跳过SSL验证
  52. 	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, '0');
  53. 	curl_setopt($ch, CURLOPT_USERAGENT, $UserAgent);//模拟USERAGENT
  54.     curl_setopt($ch, CURLOPT_URL, $url); // 请求URL
  55.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //返回数据流,而不直接输出
  56.     curl_setopt($ch, CURLOPT_HEADER, 0); // 无需响应的header头
  57.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); //连接超时,秒为单位	
  58. 	// 执行并获取返回内容
  59.     $output = curl_exec($ch);
  60.     if($output === false){
  61.         $output = 'cURL error: ' . curl_error($ch);
  62.     }
  63.     // 释放 cURL 句柄资源
  64.     curl_close($ch);
  65. 	preg_match_all("#http://v3(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/#",$output,$b);//匹配video url
  66. 	echo '
  67. 	<div class="alert alert-success" role="alert" style="text-align:center;">
  68. 	》》》
  69. 	<a href="'.$b[0][1].'" class="alert-link">右击另存为</a>
  70. 	《《《
  71. 	</div>
  72. 	<div class="panel panel-default">
  73. 	<div class="panel-heading">
  74.     <h3 class="panel-title">在线预览</h3>
  75. 	</div>
  76. 	<div class="panel-body">
  77. 	<video src="'.$b[0][1].'" controls="controls" width="100%;">
  78. 	</video>
  79. 	</div>
  80. 	</div>
  81. 	</div>
  82. 	</div>
  83. 	</div>
  84. 	';
  85. }else{
  86.     echo "<script>alert('分享链接格式不正确');location.href='/pipixia';</script>";
  87. }   
  88. }
  89. ?>
  90. </body>
  91. </html>

演示地址https://xiaogege.ooo/pipixia
回复列表(0)
帖子没有回复
添加新回复
回复需要登录
[聊天-公共聊天室]胖罗:@寻梦xunm,QQ空间抓的视频链接地址…