• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Lana-chan/mastodon-ebooks.py: Python ebooks-style bot for Mastodon

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Lana-chan/mastodon-ebooks.py

开源软件地址(OpenSource Url):

https://github.com/Lana-chan/mastodon-ebooks.py

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

mastodon-ebooks.py

Simple ebooks-style bot for mastodon.py

Inspired by original work by Jess: https://github.com/Jess3Jane/mastodon-ebooks

Original ananas solution by Noëlle: https://github.com/joyeusenoelle/ananas-ebooks

Improvements over other ebooks bots

  • Scrapes only new toots, not entire list of statuses
  • Separates corpus by account, making a multi-account ebooks easier to manage
  • Does not require Heroku or Ruby
  • "Smart" replies
  • Cronjob friendly
  • Ananas friendly

Usage

  1. Create a Mastodon account to be the ebooks bot
  2. Follow the account(s) to be used as source material from bot
  3. You can use a script like this to generate user secrets to be used by the ebooks script
  4. Scrape the users by running: ./mastodon-ebooks.py -s
  5. Verify the markov works by running locally to console: ./mastodon-ebooks.py -p
  6. Toot a markovified status! ./mastodon-ebooks.py -t

You can now set scraping and tooting to run periodically with cronjobs.

Optionally, you can also run ./mastodon-ebooks.py -r regularly to check on notifications and reply to mentions.

The Ananas Way

  1. Create a Mastodon account to be the ebooks bot
  2. Copy config.cfg-sample to config.cfg
    • Advanced users: You'll probably already have a config and secret keys for the bot. Just set it up as long as your config file can find the ananaswrapper.ebooksBot class.
  3. Run ananas --interactive config.cfg and input the information for your bot account

That's it! The ananas wrapper is set to scrape daily, toot every 30 minutes and reply to mentions. You can find more info at the ananas repo




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap