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

如下 #1

Open
chainsx opened this issue Apr 4, 2020 · 9 comments
Open

如下 #1

chainsx opened this issue Apr 4, 2020 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@chainsx
Copy link

chainsx commented Apr 4, 2020

首先感谢分享,然后有如下报错:

动态相关的网薪获取完成.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/root/yiban_Automation_tool/EGPA_script_random_num.py", line 70, in login
    start(start_json)
  File "/root/yiban_Automation_tool/EGPA_script_random_num.py", line 206, in start
    addTopic()
  File "/root/yiban_Automation_tool/EGPA_script_random_num.py", line 357, in addTopic
    link = Add_Topic.json()["data"]["link"]
KeyError: 'data'

在班级群发布话题投票能够分别得到10网薪,不知道获取学院id班级id是否为这个目的?

@chainsx
Copy link
Author

chainsx commented Apr 4, 2020

好吧怪我没看代码emmm

@chainsx
Copy link
Author

chainsx commented Apr 5, 2020

把data加上{}就没有报错,但是不知道是否解决了根本问题?
["data"] > [{"data"}]
这样的话发现只有刷动态的功能,发话题和投票时会显示出错

@rick-lzr
Copy link
Owner

rick-lzr commented Apr 5, 2020

不好意思,我更新版本的时候好像是代码没有写完。于是出现了这样的错误,我昨天晚上调试的时候也出现了这样的错误。如果你有需要的话可以稍等。我调试好了后再push到GitHub上来。或者直接使用release版本

@rick-lzr
Copy link
Owner

rick-lzr commented Apr 5, 2020

这个项目的主要目的是为了给一个集体刷EGPA做的。但是你这个问题的话可能是puid和guid没有获取正确。你应该获取正确的两个id才行。获取id的方式是点开你要发送投票的微社区。查看你的网址如下:
http://www.yiban.cn/newgroup/indexPub/group_id/ xxx /puid/ xxx这两个参数后面的就是excel表格上的参数。你可以尝试使用正确的puid和groupid
我又重新测验了一次。代码是写完了的。我的可以运行。
image
希望可以帮助到你

@rick-lzr rick-lzr added the help wanted Extra attention is needed label Apr 5, 2020
@chainsx
Copy link
Author

chainsx commented Apr 5, 2020

guid和puid确实是按照图片来获取的,我对于需求呢没有太大,这是一个非常好的项目,顶一下!

@chainsx
Copy link
Author

chainsx commented Apr 5, 2020

说错了,groupid和puid的确是按照图片那样来设置的

@rick-lzr
Copy link
Owner

rick-lzr commented Apr 5, 2020

那你成功没有呢?如果没有成功方便留下你的qq信息吗我可以将我本地的打包给你。

@chainsx
Copy link
Author

chainsx commented Apr 5, 2020

谢谢,
emmm,意思是说这个项目线上线下没有同步吗?
我的QQ:1396219808

@rick-lzr rick-lzr closed this as completed Apr 7, 2020
@rick-lzr rick-lzr reopened this Dec 9, 2020
@chainsx
Copy link
Author

chainsx commented Dec 9, 2020

why reopened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants