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.
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.
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.