Alex Rivera | Logout

How to get plain text out of Wikipedia

Asked 2010-12-15T16:09:23.053
44

I'd like to write a script that gets the Wikipedia description section only. That is, when I say

/wiki bla bla bla

it will go to the Wikipedia page for bla bla bla, get the following, and return it to the chatroom:

"Bla Bla Bla" is the name of a song made by Gigi D'Agostino. He described this song as "a piece I wrote thinking of all the people who talk and talk without saying anything". The prominent but nonsensical vocal samples are taken from UK band Stretch's song "Why Did You Do It"

How can I do this?

Edit
Report

1 Answer

-1

You can try the BeautifulSoup HTML parsing library for python,but you'll have to write a simple parser.

answered 2010-12-15T16:17:09.833

Your Answer