Skip to content

A python script embedded into an IRC bot to query Wikipedia for summaries

Notifications You must be signed in to change notification settings

maxmarchuk/wikibot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

wikibot

Summary

A bot that parses Wikipedia HTML pages for summaries and them out cleanly to an IRC channel. The script that the bot calls can also be used on its own.

Installation/Usage

There isn't really anything to install; just clone the repo with

git clone https://github.com/maxmarchuk/wikibot

To see the usage for the standalone script, run

./wikiparse.py

To use the irc bot, first create a settings.ini file and format it as shown in the example.settings.ini Then run

./ircbot.py <channel> <password>

Leave the password blank if there is none.

Disclaimer

This is not an efficient or reliable way of getting Wikipedia summaries. I am not using any APIs. The summaries are extracted from raw HTML and parsed through with BeautifulSoup4 and it was all done as a learning experience. I do not plan on extending the bot to query an API as there are many bots that do this already.

About

A python script embedded into an IRC bot to query Wikipedia for summaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages