Project 4: In the News

  • Magnus Lie Hetland


The Internet is replete with news sources in many forms, including newspapers, video channels, blogs and podcasts, to name a few. Some of these also provide services, such as RSS or Atom feeds, that let you retrieve the latest news using relatively simple code, without having to parse their web pages. In this project, we’ll be exploring a mechanism that predates the Web: the Network News Transfer Protocol (NNTP). We’ll go from a simple prototype without any form of abstraction (no functions, no classes) to a generic system in which some important abstractions have been added. We’ll be using the nntplib library, which lets you interact with NNTP servers, but adding other protocols and mechanisms should be straightforward.


Regular Expression News Item News Source Server Object Constructor Argument 

Copyright information

© Magnus Lie Hetland 2017

Authors and Affiliations

  • Magnus Lie Hetland
    • 1
  1. 1.TrondheimNorway

Personalised recommendations