16.01.2014 Views

Beginning Python - From Novice to Professional

Beginning Python - From Novice to Professional

Beginning Python - From Novice to Professional

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 20 ■ PROJECT 1: INSTANT MARKUP 393<br />

Listing 20-1. A Sample Plain Text Document (test_input.txt)<br />

Welcome <strong>to</strong> World Wide Spam, Inc.<br />

These are the corporate web pages of *World Wide Spam*, Inc. We hope<br />

you find your stay enjoyable, and that you will sample many of our<br />

products.<br />

A short his<strong>to</strong>ry of the company<br />

World Wide Spam was started in the summer of 2000. The business<br />

concept was <strong>to</strong> ride the dot-com wave and <strong>to</strong> make money both through<br />

bulk email and by selling canned meat online.<br />

After receiving several complaints from cus<strong>to</strong>mers who weren't<br />

satisfied by their bulk email, World Wide Spam altered their profile,<br />

and focused 100% on canned goods. Today, they rank as the world's<br />

13,892nd online supplier of SPAM.<br />

Destinations<br />

<strong>From</strong> this page you may visit several of our interesting web pages:<br />

- What is SPAM? (http://wwspam.fu/whatisspam)<br />

- How do they make it? (http://wwspam.fu/how<strong>to</strong>makeit)<br />

- Why should I eat it? (http://wwspam.fu/whyeatit)<br />

How <strong>to</strong> get in <strong>to</strong>uch with us<br />

You can get in <strong>to</strong>uch with us in *many* ways: By phone (555-1234), by<br />

email (wwspam@wwspam.fu) or by visiting our cus<strong>to</strong>mer feedback page<br />

(http://wwspam.fu/feedback).<br />

To test your implementation, you need only <strong>to</strong> use this document as input and view the<br />

results in a Web browser—or perhaps examine the added tags directly.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!