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