GithubHelp home page GithubHelp logo

9jiainfo's Introduction

9jiainfo, 钉钉群聊机器人推送九价实时信息

效果

电脑端

手机端

配置

  • 需要安装额外两个库:
python3 -m pip install schedule
python3 -m pip install dingtalkchatbot

  • 修改webhook和secret为自己创建钉钉群聊机器人时,系统默认分配的

运行

python3 9jiainfo.py

或者挂在vps上

nohup python3 9jiainfo.py

更新

切换到项目文件夹的目录下,执行:

git pull

更新日志

  • V0.0.1 demo version,开源GitHub

  • V0.0.2 修改信息源,即更新请求的URL

  • V0.0.3

    • 增加内容更新判断

    • 增加地区选择

  • V0.0.4

    • 增加休息功能
    • 简化内容

问题

  • 欢迎提交issues,贴上完整的报错以及截图

Todo

  • 内容更新判断
  • 地区选择
  • 增加休息功能,22点到8点不推送
  • 简化内容(格式化获取到的内容)

9jiainfo's People

Contributors

mm0nk3y avatar

Watchers

 avatar

9jiainfo's Issues

报错

TypeError: 'NoneType' object is not subscriptable

image

有些错误无法解决,希望大佬出手相助

我按照readme里面讲的,我设置的城市是济南(jn),但是还是报错,我也尝试了jinan、JN、JINAN、、、、都是报这个错误,同时我也按照成都(cd)的尝试了,cd是可以正常推送的的,所以想问一下,这个是怎么回事呀,感谢大佬。谢谢谢谢。

是济南的不适用嘛,还是怎么。
image
image
image
image

text类型,消息内容不能为空

curl: option --compressed: the installed libcurl version doesn't support this
curl: try 'curl --help' for more information
ERROR:root:text类型,消息内容不能为空!
Traceback (most recent call last):
File "D:/JetBrains/PyCharmProjects/9jiainfo-main/9jiainfo-main/9jiainfo.py", line 29, in
schedule.run_pending()
File "D:\Python\Python38\lib\site-packages\schedule_init_.py", line 780, in run_pending
default_scheduler.run_pending()
File "D:\Python\Python38\lib\site-packages\schedule_init_.py", line 100, in run_pending
self.run_job(job)
File "D:\Python\Python38\lib\site-packages\schedule_init
.py", line 172, in run_job
ret = job.run()
File "D:\Python\Python38\lib\site-packages\schedule_init
.py", line 661, in run
ret = self.job_func()
File "D:/JetBrains/PyCharmProjects/9jiainfo-main/9jiainfo-main/9jiainfo.py", line 23, in job
xiaoding.send_text(msg=c, is_at_all=True)
File "D:\Python\Python38\lib\site-packages\dingtalkchatbot\chatbot.py", line 125, in send_text
raise ValueError("text类型,消息内容不能为空!")
ValueError: text类型,消息内容不能为空!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.