RandomQuote

A “web service” for generating random quotes.

Place this file (along with quotes.py) on your server, execute it through the browser.

When called without arguments, this script produces a quote in standard HTML format. It takes an optional format parameter, by appending ?format=Format_Name at the end of the URL.

Formats supported so far (case sensitive):

Test the script, or get the source code and the quotes file.

Widget example: Place the following in your HTML file:

<script type='text/javascript' src='URL/to/script?format=javascript' />

A quote will be inserted wherever you’ve placed the script tag.

All the output is utf-8 encoded, and so are the source files.

Required third-party libraries: