Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment文件无法获取 #1

Open
YinHan-Zhang opened this issue Oct 18, 2022 · 5 comments
Open

Comment文件无法获取 #1

YinHan-Zhang opened this issue Oct 18, 2022 · 5 comments

Comments

@YinHan-Zhang
Copy link

  1. attitudes.csv文件已获取
  2. 其他的两个文件无法获取,一直打印这个错误 Expecting value: line 1 column 1 (char 0)
  3. 放了一晚上,也没运行结束,一直停留在 Expecting value: line 1 column 1 (char 0)
@YinHan-Zhang
Copy link
Author

Traceback (most recent call last):
File "D:/WeiboSpider_forComments_Reposts_Attitudes/start.py", line 16, in
parsecomments.main()
File "D:\WeiboSpider_forComments_Reposts_Attitudes\parseComments.py", line 52, in main
new_response = requests.get(new_url, headers=self.headers, params=data).json()
File "C:\Users\AppData\Roaming\Python\Python38\site-packages\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\AppData\Local\Programs\Python\Python38\lib\json_init_.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Users\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@YinHan-Zhang
Copy link
Author

这是cookies给封了么?

@qq992875076
Copy link

我的也是这个原因,应该不是cookie被封,我换了一个还是报的这个错

@ZhaoGu0907
Copy link

楼上的解决了么?我的也是这样的问题

@honglalala
Copy link

朋友们,解决了吗~我也是这样的问题

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

No branches or pull requests

4 participants