还是不行。我在原来目录下运行,脚本跳过几十个已下载的文件后还是同样报错,这时候去网站登录就是脚本被识别为爬虫并要求非机器人验证。
补充下,我环境没问题的,之前已经下了600G多。
- Traceback (most recent call last):
- File "javhd.py", line 85, in <module>
- run()
- File "javhd.py", line 75, in run
- mp4_dict=s.find_mp4(i[0],reqget)
- File "javhd.py", line 24, in find_mp4
- return req.json()
- File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 892, in json
- return complexjson.loads(self.text, **kwargs)
- File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
- return _default_decoder.decode(s)
- File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
- obj, end = self.raw_decode(s, idx=_w(s, 0).end())
- File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode
- raise JSONDecodeError("Expecting value", s, err.value) from None
- json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
复制代码 |