WikiFact

Discord 机器人

WikiFact

此机器人收录等待认领

此机器人目前没有管理员。若你拥有它,可认领以编辑收录并取得所有权。

关于

Spits out a random fact off the Wikipedia Unusual Articles page with !factme

Use command '!factme', it give u fact

How the leprechauns and fairy magic works:

Written in Python, the algorithm accesses the web to import the Wikipedia Unusual Articles page in HTML using the requests library.
The HTML data can then be parsed using the Beautiful Soup library to obtain a list of articles.
This list is only generated once upon start up, not each time the bot is called. This is done to minimize bot response time.
A random python function is then used to select an article. The chosen article will then be parsed one last time to obtain the title, description and link.
See github repository for code.

TLDR: You get a title, description and wiki link to a random unusual wiki article.

语言

  • English

评价

1 · 1 条评价

暂无评价 — 来分享你的体验吧。

投票统计

本指南过去 30 天记录的数据。

0 本月投票
0 累计投票
0 最近 7 天
0 独立投票人 · 30 天

最近 30 天

  • 投票

按星期

一
二
三
四
五
六
日
WikiFact
WikiFact
0 个服务器 · 月票 0
邀请