PeterDing / iScript

各种脚本 -- 关于 虾米 xiami.com, 百度网盘 pan.baidu.com, 115网盘 115.com, 网易音乐 music.163.com, 百度音乐 music.baidu.com, 360网盘/云盘 yunpan.cn, 视频解析 flvxz.com, bt torrent ↔ magnet, ed2k 搜索, tumblr 图片下载, unzip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xiami cookies

Harry1993 opened this issue · comments

Hello Peter,

Due to Taobao's anti-crawling mechanism, cookies need updated every time xiami.py gets caught (i.e., 「亲,访问受限了」). Is there any way to bypass it?

Thanks,

Yanmao

Also, at

infos = self._request(url_collect, params=params).json()

we pass over params=params to function _request(), hence at

def _request(self, url, headers=None, data=None, method='GET', timeout=30, retry=2):

we should add params=None as another parameter. Also add params=params to

resp = ss.request(method, url, headers=headers, data=data, timeout=timeout)

Thanks!

@Harry1993 Thank you for debugging.
Recently, I have not idea how to handle Taobao's new cookie policy. I need time to hack it.
And the _request code error will be fixed as far as possible.