Downloading quotes from wikiquote.org

In my pursuit of making a great mobile application to show quotes from
various author, philosophers and thinkers I created a python tool to
download in bulk quotes from
wikiquote.org. The tool is
simply called “wikiquotes-downloader”. “wikiquotes-downloader” is aimed
at downloading all quotes from a certain individual from Wikiquote’s
website. For instance if you ask for quotes from “Friedrich Nietzsche”,
the tool will visit “Friedrich Nietzsche” Wikiquote
page
and will create
a JSON object containing quotes from “Friedrich Nietzsche”. In the
process “wikiquotes-downloader” will remove any quote that is not from
the individual in question (e.g. misattributed quotes will be removed).
The tool is also capable of language detection and will only grab the
quotes in English. Furthermore the result is clean from any wikitext or
html metadata. “wikiquotes-downloader” is hosted on
Github.

To use the tool clone the github repository using the following
command:
git clone https://github.com/mparusinski/wikiquotes-downloader.git

Run the following command
python DownloadQuotes.py --author

For instance to download quotes from “Friedrich Nietzsche”:
python DownloadQuotes.py --author "Friedrich Nietzsche"

Leave a Reply

Your email address will not be published. Required fields are marked *