Squeeze Baidu cloud offline download

Source: Internet
Author: User
The code is original. You only need to have a Baidu cloud account and you do not need to extract the cookie named BDUSS by yourself (the cookie of the Baidu cloud client I extracted directly has not yet expired. You can also extract the bduss cookie of the web version.) The source code can quickly create offline download tasks on your website. For example, if someone sends the source code to Hu lvlin, I will save it directly.

The code is original. You only need to have a Baidu cloud account and you do not need to extract the cookie named BDUSS by yourself (the cookie of the Baidu cloud client I extracted directly has not yet expired. You can also extract the bduss cookie of the web version.) The source code can quickly create offline download tasks on your website. For example, if someone sends the source code to Hu lvlin, I will save it directly.

Original code. You only need to have a Baidu cloud account. <无>
You need to extract the cookie named BDUSS by yourself (I directly extract the cookie from the Baidu cloud client, which has not yet expired. You can also extract the bduss cookie of the web version.) The source code can quickly create offline download tasks on your website. For example, if someone sends the source code to Hu lvlin, I saved it directly to my Baidu cloud. ""Game (apk)You can add and modify the folder on your own. The system automatically creates the folder on your Baidu cloud. (It can only be saved to a level-1 directory. Because of the encoding problem during post, I have studied the encoding rules of the level-1 directory for a long time)
  Open ($ url); $ f-> post ($ post); $ f-> cookie ('bduss ', 'Your cookies '); $ f-> header ('user _ agent', 'netdisk; 5.2.0; BestsonnyT961; android-android; 2.3.7 '); $ f-> send (); $ l = $ f-> response (); $ json = json_decode ($ l, true); if ($ r = $ json [task_id]) {echo "the file is successfully saved, task id :". $ r;} else {echo "the transfer failed because :". $ json [error_msg];} is saved as up. php
You need to extract the cookie named BDUSS by yourself (I directly extract the cookie from the Baidu cloud client, which has not yet expired. You can also extract the bduss cookie of the web version.) The source code can quickly create offline download tasks on your website. For example, if someone sends the source code to Hu lvlin, I saved it directly to my Baidu cloud. ""Game (apk)You can add and modify the folder on your own. The system automatically creates the folder on your Baidu cloud. (It can only be saved to a level-1 directory. Because of the encoding problem during post, I have studied the encoding rules of the level-1 directory for a long time)
  Open ($ url); $ f-> post ($ post); $ f-> cookie ('bduss ', 'Your cookies '); $ f-> header ('user _ agent', 'netdisk; 5.2.0; BestsonnyT961; android-android; 2.3.7 '); $ f-> send (); $ l = $ f-> response (); $ json = json_decode ($ l, true); if ($ r = $ json [task_id]) {echo "the file is successfully saved, task id :". $ r;} else {echo "the transfer failed because :". $ json [error_msg];} is saved as up. php

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.