View: 8821|Reply: 1

Tải video không che watermark từ Douyin

[Copy link]
Posted on 13-7-2020 23:48:35 | Show all floors |Reading mode
  Mạng xã hội Tiktok trung quốc ( đơn vị chủ quản là Bytes Dances ) rất cuốn hút giới trẻ khắp nơi trên thế giới sử dụng.
Dưới đây sẽ là một ứng dụng để giúp bạn tải video từ douyin về, với chất lượng file tốt nhất, không bị che logo tiktok.

  1. <?php
  2. header("Content-Type: text/html;charset=utf-8");
  3.     if(isset($_GET["url"])){
  4.         //HTTP headers setting
  5.         $hdrs = array(
  6.             'http' =>array('header' =>
  7.              "Referer: https://v.douyin.com/" .
  8.              "User-Agent: Mozilla/5.0 ABCD\r\n"
  9.             ),
  10.         );
  11.         //Create requests
  12.         $context = stream_context_create($hdrs);
  13.         //Parse request get video id
  14.         file_get_contents($_GET["url"],0,$context);
  15.         $id=$http_response_header[6];
  16.         $id=explode("video/",$id);
  17.         $id=explode("/?",$id[1]);
  18.         $id=$id[0];
  19.         //Get video data from api
  20.         $url="https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids=".$id;
  21.         $jsonData=file_get_contents($url,0,$context);
  22.         $jsonData=json_decode($jsonData);
  23.         //Get watermark play url
  24.         $url=$jsonData->item_list[0]->video->play_addr->url_list[0];
  25.         //Get watermark video url
  26.         $url=str_replace("playwm","play",$url);
  27.         //Get non watermark video url
  28.         file_get_contents($url,0,$context);
  29.         for($i=0;$i<sizeof($http_response_header);$i++){
  30.             $url=$http_response_header[$i];
  31.             if(substr($url,0,8)=="location"){
  32.                 $url=$http_response_header[$i];
  33.             break;
  34.             }
  35.         }

  36.         $url=str_replace("location: ","",$url);
  37.         echo $url;
  38.     }
Copy code

Reply

Use item Report

 OP| Posted on 13-7-2020 23:54:44 | Show all floors
Cách sử dụng:
Vào xem clip bạn thích, nhấn share, copy url, rồi dán vào form trang download:
https://tools.netdepviet.org/douyin/
hoặc điền vào sau link api sau:
https://tools.netdepviet.org/dou ... douyin.com/JFhcVoB/
Kết quả trả về là link clear, không watermark, bạn có thể tải về máy xem rồi.
Reply GOOD NORMAL

Use item Report

You need to log in to reply. Login | Register

Points Rules for This Section

Theo dõi bản tin
Archiver|Mobile|Facebook|Contact|Netdepviet.org

Giữ gìn bản sắc dân tộc · Trân trọng quá khứ, hướng tới tương lai。

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

InThis boardPost
Kết nối Zalo
Back to top