😄 你好~ 我是 yihong0618,生活工作在大连。 喜爱游戏,跑步,读书,编程和有趣的东西。 项目大多和这些相关。
你可以到我的网站来玩, 📫 如果你想聊聊,可以给我发邮件, 也可以来到我的 tg 频道
也欢迎赞助我杯可乐 Sponsor Me
Yesterday you said tomorrow.
记录下的跑步 13 年。
Automatically send new words from duolingo to telegram
License: MIT License
source venv/bin/activate
python duolingo.py *** *** *** 20
shell: /usr/bin/bash -e {0}
env:
LATEST_WORDS_NUMBER: 20
pythonLocation: /opt/hostedtoolcache/Python/3.6.14/x64
usage: duolingo.py [-h]
duolingo_user_name duolingo_password tele_token
tele_chat_id latest_number
duolingo.py: error: the following arguments are required: latest_number
Error: Process completed with exit code 2.
今天累了,稍后修复
Using Edge GPT API
Traceback (most recent call last):
File "duolingo.py", line 375, in
main(
File "duolingo.py", line 311, in main
) = duolingo.get_duolingo_words_and_save_mp3()
File "duolingo.py", line 239, in get_duolingo_words_and_save_mp3
article = call_edge_gpt_to_make_article(words_str, language)
File "duolingo.py", line 64, in call_edge_gpt_to_make_article
respond = asyncio.run(bot.ask(prompt))"item""messages"***
KeyError: 'messages'
##errorProcess completed with exit code 1.
Run python duolingo.py *** *** --tele_token *** --tele_chat_id *** --latest_number 20
[2](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:2)
python duolingo.py *** *** --tele_token *** --tele_chat_id *** --latest_number 20
[3](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:3)
shell: /usr/bin/bash -e {0}
[4](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:4)
env:
[5](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:5)
OPENAI_API_KEY: ***
[6](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:6)
EDGE_GPT_COOKIE: ***
[7](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:7)
LATEST_WORDS_NUMBER: 20
[8](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:8)
pythonLocation: /opt/hostedtoolcache/Python/3.8.16/x64
[9](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:9)
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib/pkgconfig
[10](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:10)
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
[11](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:11)
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
[12](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:12)
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
[13](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:13)
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib
[14](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:15)
Traceback (most recent call last):
[15](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:16)
File "duolingo.py", line 302, in <module>
[16](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:17)
main(
[17](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:18)
File "duolingo.py", line 238, in main
[18](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:19)
) = get_duolingo_words_and_save_mp3(tts_url, latest_num=latest_num)
[19](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:20)
File "duolingo.py", line 206, in get_duolingo_words_and_save_mp3
[20](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:21)
make_edge_article_tts_mp3(article, language_short)
[21](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:22)
File "duolingo.py", line 130, in make_edge_article_tts_mp3
[22](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:23)
language = random.choice(EDGE_TTS_DICT[language_short][gender])
[23](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:24)
KeyError: 'zc'
[24](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:25)
Error: Process completed with exit code 1.
你好,我已在 Secrets 中设置了我的 TELE_TOKEN TELE_CHAT_ID 等参数,并且 LATEST_WORDS_NUMBER 也未做修改,但是执行 action 时出现下面的错误:
usage: duolingo.py [-h]
10
duolingo_user_name duolingo_password tele_token
11
tele_chat_id latest_number
12
duolingo.py: error: the following arguments are required: tele_chat_id, latest_number
13
Error: Process completed with exit code 2.
提示缺少了后面两个参数,看了实现代码不知道原因,能否检查一下?谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.