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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

452 CHAPTER 23 ■ PROJECT 4: IN THE NEWS<br />

# A SimpleWebSource that retrieves news from the<br />

# BBC news site:<br />

bbc_url = 'http://news.bbc.co.uk/text_only.stm'<br />

bbc_title = r'(?s)a href="[^"]*">\s*\s*(.*?)\s*'<br />

bbc_body = r'(?s)\s*\s*(.*?)\s*

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

Saved successfully!

Ooh no, something went wrong!