Vu1nT0tal / yarb

方便获取每日安全资讯的爬虫和推送程序
https://vulntotal-team.github.io/yarb/
GNU General Public License v3.0
657 stars 229 forks source link

fix asyncio errors #19

Closed void0x closed 1 year ago

firmianay commented 1 year ago

为什么要改成异步呢,我没有测试过,有什么明显的好处?

void0x commented 1 year ago

Your requirements.txt doesn't list the versions of the libraries.

The latest version of python-telegram-bot is downloaded, it has become asynchronous, and now your old code throws an error. So I fixed it to make everything work. I had to add asynchrony.

firmianay commented 1 year ago

在线求用telegram的师傅帮忙测试一下

void0x commented 1 year ago

image For this, I made changes so that posting to telegram with the new version of python-telegram-bot would work for me. Here is a screenshot from my channel, this feed is formed with yarb.

firmianay commented 1 year ago

ok, thanks

void0x commented 1 year ago

Maybe freeze requirements.txt (with versions)?

Otherwise, sooner or later it will break again, because. with the current one, the latest versions of libraries are downloaded, in which they can change something.

firmianay commented 1 year ago

I prefer to keep the latest version, and when there is a problem, it can be found and fixed in time

firmianay commented 1 year ago

@void0x Hello! The code submitted this time may have caused problems in other bots. Can you fix it? #20

void0x commented 1 year ago

@firmianay Hi! Yes, I'll take a look.