WikiFact

Listing bot này đang chờ nhận quyền

Bot hiện chưa có người quản lý. Nếu bạn là chủ sở hữu, hãy nhận quyền để chỉnh sửa listing và nhận quyền sở hữu.

Giới thiệu

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.

Ngôn ngữ

  • English

Đánh giá

1 · 1 đánh giá

Chưa có đánh giá — hãy là người đầu tiên chia sẻ trải nghiệm.

Thống kê phiếu bầu

Ghi nhận trên thư mục này trong 30 ngày qua.

0 Phiếu bầu tháng này
0 Phiếu bầu mọi thời đại
0 7 ngày qua
0 Người bình chọn duy nhất · 30 ngày

30 ngày qua

  • Phiếu bầu

Theo ngày trong tuần

T2
T3
T4
T5
T6
T7
CN
WikiFact
WikiFact
0 máy chủ · 0 phiếu/tháng
Mời