在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):PetraOleum/vortaro开源软件地址(OpenSource Url):https://github.com/PetraOleum/vortaro开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):Roboto por esperanta vortaro("Robot for an Esperanto dictionary") This is a Mastodon bot that posts entries from a English-Esparanto dictionary. It is hosted @[email protected], and uses the Mastodon.py Python wrapper. This is my first bot for either Twitter or Mastodon, and my first python program in a long time. It's not perfect, but it works. SourceThe bot takes its wordlist from the utf-8 version of the above-linked dictionary, editing out the section headings and other elements that do not fit the pattern "(English) = (Esperanto).", e.g:
A handful of words I'd rather not have appear are removed, along with the first entry which for posterity reads:
This is a very important feature of the language! It just doesn't fit the formulae I use. UsageObviuosly you're more likely to use this to make your own bot, but supposing you were going to deploy an exact copy this is what you would do:
cronI run the bot via
in your crontab, it's not going to run the bot in the right directory to find the files it needs; instead it will fail silently. Personally I use a wrapper script that |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论