Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

修正BCloud不能获取内容的网络错误; #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

修正BCloud不能获取内容的网络错误; #254

wants to merge 1 commit into from

Conversation

suanyun
Copy link

@suanyun suanyun commented Sep 3, 2016

修正方式参考:http://tieba.baidu.com/p/4568799018?pid=90678992863&cid=0#90678992863

Trouble Shooting Ways of Ubuntu

Step1:sudo gedit /usr/lib/python3/dist-packages/bcloud/auth.py
Do:在get_bdstoken函数的if req:前一行添加"cookie.load_list(req.headers.get_all('Set-Cookie'))"

Step2:sudo gedit /usr/lib/python3/dist-packages/bcloud/pcs.py
Do:把所有cookie.sub_output()的参数添加上'SCRC','STOKEN'
例:'Cookie': cookie.sub_output('BAIDUID', 'BDUSS', 'PANWEB', 'cflag', 'SCRC', 'STOKEN'),

Step3:删除配置数据和缓存
sudo rm -rf ~/.config/bcloud/*
sudo rm -rf ~/.cache/bcloud/*

Step4:重新运行Bcloud

Thanks ”poplit“ for share!

修正方式参考:http://tieba.baidu.com/p/4568799018?pid=90678992863&cid=0#90678992863

Trouble Shooting Ways of Ubuntu

Step1:sudo gedit /usr/lib/python3/dist-packages/bcloud/auth.py
Do:在get_bdstoken函数的if req:前一行添加"cookie.load_list(req.headers.get_all('Set-Cookie'))"

Step2:sudo gedit /usr/lib/python3/dist-packages/bcloud/pcs.py
Do:把所有cookie.sub_output()的参数添加上'SCRC','STOKEN'
例:'Cookie': cookie.sub_output('BAIDUID', 'BDUSS', 'PANWEB', 'cflag', 'SCRC', 'STOKEN'),

Step3:删除配置数据和缓存
sudo rm -rf ~/.config/bcloud/*
sudo rm -rf ~/.cache/bcloud/*

Step4:重新运行Bcloud

Thanks ”poplit“ for share!
@BensonLaur
Copy link

谢谢,根据这个方法确实解决咯,哈哈,你提供修正方式参考的链接的锚定位不准确呀。下面这个更准确一点:
[http://tieba.baidu.com/p/4568799018?pid=90678992863&cid=0#post_content_93720626676]

@poemdistance
Copy link

非常感谢,问题解决了!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants