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

运行命令python3 main.py -i realangelababy时候报错 #47

Open
shejay2017 opened this issue Jun 22, 2017 · 7 comments
Open

运行命令python3 main.py -i realangelababy时候报错 #47

shejay2017 opened this issue Jun 22, 2017 · 7 comments

Comments

@shejay2017
Copy link

出现错误:error, account id 5403168675 is not valid, pass this account, you can edit it and then update cookies.

请问这是什么原因啊,微博账号在网页能正常登陆,

@lucasjinreal
Copy link
Owner

Account id is your login username, not the weibo id.

@shejay2017
Copy link
Author

谢谢你的回复,这个我也换成过微博账号,也还是报错,完整的错误是这样的:
error, account id 18275209699 is not valid, pass this account, you can edit it and then update cookies.
all accounts getting cookies finished. starting scrap..
[Errno 2] No such file or directory: 'settings/cookies.pkl'
error, not find cookies file.
Traceback (most recent call last):
File "main.py", line 56, in
dispatcher.execute()
File "/root/weibo_terminater/core/dispatch_center.py", line 50, in execute
self._init_single_mode()
File "/root/weibo_terminater/core/dispatch_center.py", line 93, in _init_single_mode
scraper = WeiBoScraper(using_account=self.all_accounts[0], uuid=self.user_id, filter_flag=self.filter_flag)
AttributeError: 'Dispatcher' object has no attribute 'all_accounts'

@lucasjinreal
Copy link
Owner

Should install PhantomJS first, we using this to get cookies automatically.

@xnzmc
Copy link

xnzmc commented Nov 27, 2017

I came up with the same problem, and I'm pretty sure that PhantomJs is installed correctly and config.py is modified correctly.
This is really confusing to me. And I guess maybe the internet condition/speed is related?

@H47sj
Copy link

H47sj commented Dec 13, 2017

hi,xnzmc! I also meet this problem. Have you already fix it?

@ray0807
Copy link

ray0807 commented Jan 9, 2018

初步怀疑是ip(可能被禁止)问题:
1.相同账号
2.同时运行程序

下图是本地测试:
1

阿里云测试(docker部署):
2

@mansonami
Copy link

try:
        cookie_list = driver.get_cookies()
        print(cookie_list)

这里得不到?

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

6 participants