goldsmith / Wikipedia

A Pythonic wrapper for the Wikipedia API
https://wikipedia.readthedocs.org/
MIT License
2.88k stars 519 forks source link

How to get rid of unwanted characters? #106

Open mrmushfiq opened 8 years ago

mrmushfiq commented 8 years ago

wikipedia.summary("Albert Einstein") would give me : u'Albert Einstein (/\u02c8a\u026ansta\u026an/; German: [\u02c8alb\u0250rt \u02c8a\u026an\u0283ta\u026an]; 14 March 1879 \u2013 18 April 1955) was a German-born theoretical physicist. He developed the general theory of relativity .. Any general solution to get rid of
(/\u02c8a\u026ansta\u026an/; German: [\u02c8alb\u0250rt \u02c8a\u026an\u0283ta\u026an];
like unnecessary tags..?

mrmushfiq commented 8 years ago

Solved the issue I had to find the index of "(" and last ";" on the first line. Then remove that part of the string.

zygimantus commented 8 years ago

If you solved the issue, please close it. :+1: