DokanCloudFS icon indicating copy to clipboard operation
DokanCloudFS copied to clipboard

Add Baidu Cloud Support

Open nicoboss opened this issue 8 years ago • 10 comments

Thank you so much for making such an amazing program. I really love it! I searched the whole internet for something like this. Cloud you please add support for BaiduPan the biggest Chinese cloud? BaiduPan is my favourite cloud because 2068 GB is much more space than the 16 GB from GoogleDrive and this although this I'm from Switzerland

Why you should add BaiduPan:

  • 2TB FREE space!!!
  • Extremely fast for big data
  • Nice PC and Android client
  • Perfect for encrypted PC backups
  • Easy API (I already used it)

How to register: https://techjourney.net/get-2tb-free-cloud-storage-space-on-baidu-yun-drive-baidu-pan-web-disk/ http://zc.qq.com/en/index.html But personally I'm using a QQ Account instead of a Baidu Account due to mobile varication problems: http://zc.qq.com/en/index.html

You might can use following projects: https://github.com/houtianze/bypy https://github.com/wrwcmaster/BaiduPanAPI https://github.com/670232921/BaiduYunFileSystem/

Chinese Cloud history: After the china government started to censors American clouds like google drive a cloud war started and everybody tried to offer more free space then the competitors until Qihoo 360 Yunpan offers 36 TB for free which was unbeatable! But after the Chinese cloud war ends and Baidu was the winner due to its functions the clouds still remain on sizes like 2 TB and this is amazing if you compare this size with western clouds. Note: For files under like 100-200 MB all Chinese clouds are extremely slow due to we need to bypass the Big Firewall of China If BaiduPan isn't possible please add Tencent Weiyun. It's the second biggest Chinese cloud and offers also 2 TB: http://www.1mtb.com/how-to-get-10-tb-free-online-cloud-storage-from-tencent-weiyun/

nicoboss avatar May 16 '16 03:05 nicoboss

Thank you very much for your praise, and also thanks for suggesting a new Cloud Service to be incorporated in to DokanCloudFS.

I'll need some time to evaluate your suggestion, though, because:

  • it might be that the 2TB free storage space you quote has been degraded to a mere 6GB according to Wikipedia,
  • of the three API libraries you mention only two are .NET based and none of them is documented in any way,
  • I have found it excruciatingly difficult to register for a Baidu account (or a QQ account for that matter) due to the required SMS verification, let alone retrieve a developer API key.

For Tencent Weiyun I have not found a developer API at all.

viciousviper avatar May 16 '16 23:05 viciousviper

On your mentioned Wikipedia article the Baidu Cloud have "2 TB (6 GB) free[8]" and if you check source [8] you will see that this means that you only gets the 2 TB if you connecting your account with their Baidu Cloud mobile App. I made my latest account some weeks ago and still got 2 TB and am sure that they won't offer less as long as Tencent Weiyun also offers 2 TB.

I also find it very difficult to find out how the Baidu API exactly works because the documentation is completely in Chinese. I read the official Baidu cloud python library under https://github.com/ly0/baidupcsapi/blob/master/baidupcsapi/api.py and some other python projects like https://github.com/banbanchs/pan-baidu-download/blob/master/bddown_core.py and https://github.com/qdore/baidu-pan/blob/master/baidu.py For me this was much easier then reading the official API documentation from http://developer.baidu.com using Google Translate

And yes if you don't have any Chinese phone number Baidu probably won't work but QQ International is very easy and in English and Baidu accept QQ accounts. How to get the key is explained under http://developer.baidu.com/wiki/index.php?title=docs/oauth/authorization (just use Google translate) but as far as I can remember I got my API Keys from http://openapi.baidu.com/oauth/2.0/authorize but I'm not completely sure. Maybe also take a look at https://github.com/hjin-me/baidu-client-auth

And for Tencent Weiyun you will find the unofficial API under https://github.com/Macuyiko/weiyun-api

nicoboss avatar May 18 '16 10:05 nicoboss

I asked some Chinese friend how the API exactly works and how to get an access token. She told me that it's not difficult to understand if you are on the right documentation pages. I'm looking forward to your Badu implementation. If you have any problems feel free to ask might can help.

API documentation: http://developer.baidu.com/wiki/index.php?title=docs/pcs/rest/file_data_apis_list

Access token generation: http://developer.baidu.com/wiki/index.php?title=%E4%BD%BF%E7%94%A8%E5%BA%94%E7%94%A8%E5%85%AC%E9%92%A5%E3%80%81%E5%AF%86%E9%92%A5%E8%8E%B7%E5%8F%96Access_Token

Access token generation example: https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=Va5yQRHlA4Fq4eR3LT0vuXV4&client_secret=0rDSjzQ20XUj5itV7WRtznPQSzr5pVw2&

nicoboss avatar Jun 09 '16 21:06 nicoboss

Just to let you know - I've been AFK for the last three weeks, so there hasn't been any progress on the Baidu subject.

Thanks for digging up yet another set of docs. Unfortunately they are written in Chinese once again - which I don't understand a bit. Maybe I'll give Google Translate a go at them - we'll see what that turns up.

viciousviper avatar Jun 14 '16 23:06 viciousviper

Ok, so I tried to sign up with QQ.com at http://zc.qq.com/en/index.html but I can't get the signup page to send me a confirmation SMS. After entering my account details I am referred to the "SMS verification" page where - lacking a Chinese phone contract - I enter a non-chinese phone number. This invariably leads to an error message "This number has reached the daily limit of verification code received. Please try a different number".

Unless you can point me to a different way of registering for a Baidu/QQ developer account I'd say the Baidu gateway is dead in the water.

viciousviper avatar Jun 19 '16 21:06 viciousviper

I just made some QQ accounts and it's still working for me with Swiss mobile phone numbers (you only need to click "select your country/region" below the mobile input field and choose your number prefix like 0041 for Switzerland and after this enter your phone number in short form. By the way you also need to do this on every other international registration page like this) but I found a much easier solution. There is an international Baidu registration page were you only need to enter your mobile phone number and your password to directly get Baidu yun cloud access which worked without any problems for me! Just try https://passport.baidu.com/v2/?reg&u=http://pan.baidu.com&regType=1&tpl=netdisk&overseas=1 and you'll love it! Otherwise using a Weibo account is also an option. If all of this options doesn't work for you I could also give you one of my accounts because I have that much now.

nicoboss avatar Jun 20 '16 17:06 nicoboss

Hello everyone, I have a problem. I need to create a baidu developer account but I can't, the SMS code never arrive to my cel phone. I open a baidu normal account and the SMS code arrive and it works, but for the developer account never work. "The phone number is not formatted correctly" that is the message and I am tired of read it. Also I try to open de QQ account and have a similar problem with the step of the phone number and getting the SMS code (never arrive). I need another option, I must open a baidu developer account. Any advice will be very helpful.

lemu1010 avatar Aug 30 '16 14:08 lemu1010

@lemu1010 Have you tried reaching out to Baidu support? If you can't receive the Sms token to create an account then i dont think the owner of this repository can do anything about it. You're raising the question to the wrong person

Band-Aid avatar Aug 30 '16 14:08 Band-Aid

@lemu1010 The easiest solution will probably be just writing to the quite friendly support as @Band-Aid recommended.

If you don't want to write them ask a Chinese friend or buy a virtual Chinese mobile phone number they often are very cheap. I personally don't know any way to register to a baidu development account without because they probably expect a Chinese prefix and so the shorts number length so take a look to the number format before buying a virtual Chinese number. You will find some provides under https://www.quora.com/Looking-for-Chinese-virtual-numbers-TOP-7-of-the-best-providers#

Here an English guide how to register a Baidu development account in general: account:http://docs.aws.amazon.com/sns/latest/dg/baidu-register-developer.html

nicoboss avatar Aug 30 '16 14:08 nicoboss

Thanks @Band-Aid and @nicoboss for your answer.

I will try with Baidu support depending on their response, I suppose also try with a virtual Chinese mobile phone number.

in any case I will tell you my result.

lemu1010 avatar Aug 30 '16 14:08 lemu1010