Program third command line argument, Programming Languages

Most popular news websites publish their RSS ( Really Simple Syndication ) feeds. If you haven 't heard of RSS,

you may have a look at this article on Wikipedia. In this assignment, y ou are to write a simple RSS News Reader and Aggregator in Perl.

The reader.pl should accept only one command line argument which is the URL of a speci_ed RSS feed. If the RSS feed is valid, all items in the RSS fe ed should be displayed on the screen with the following details:

  • Title
  • Author* (where exists )
  • Date published (where exists)
  • Content (description)

In Part B, the script only needs to support one of the following three formats.

  • Text (le extension: txt)

The generated text le should look similar to Part A. However, it should also exclude all markups (e.g.
HTML tags) to make the output more readable.

  • HTML (le extension: htm or html)

The generated le should be compatible with major browsers (Microsoft Internet Explorer 8+, Firefox
3.6+, and Google Chrome 16+). HTML formats and images from the RSS feeds (wher e exists) should
also be retained.

  • RSS (le extension: xml)

The generated RSS feed should at least include the four required elements specied in Part A. In c ase
some of the elements are missing , the aggregated le should still include the missing elem ent(s) but
with an empty value. The generated le should conform to the RSS 2.0 standard.

Part A

Improve your aggregator.pl to support two of the three formats specified in Part B.

Part B

Further improve your aggregator.pl to support all three formats specified in Part B.

In addition, the script should also accept an optional third command line argument which specifies a date in the

format of dd/mm/yyyy. When the argument is provided, e.g.

./aggregator.pl feeds.txt everything.xml 12/03/2012

It should then include only news items published on or after the specified date in the output _le. The time zone in the RSS feeds can be ignored.

Posted Date: 2/19/2013 6:21:51 AM | Location : United States







Related Discussions:- Program third command line argument, Assignment Help, Ask Question on Program third command line argument, Get Answer, Expert's Help, Program third command line argument Discussions

Write discussion on Program third command line argument
Your posts are moderated
Related Questions
At the core of DHTML is the Document Object Model, or DOM, which represents the HTML or XML of a Web page that is displayed in a browser. The Document Object Model that represents

I need help for C# XNA 2Dimension Game Development. I am gonna send the question and my solution(incomplete). I need you to complete it. Can you help me about that. I have 6-7 days


Operation • This application uses an Alligator class that implements a Countable interface to display Alligator objects as shown above. • This application uses a Sheep class that i

.NET class libraries in .NET Whether you create value in C# or VB.NET, you are getting in touch with techniques in the same .NET category your local library. The same .NET str

Let us first see the skeleton of a JavaScript file. JavaScript code should be written between the and tags. The value LANGUAGE = "JavaScript" indicates to the browser that J

I have a linux lab class that consist of 1 lab assignment per week for 5 weeks. It is an online virtual lab and is fairly easy, I just don''t have the time.

New Features of Visual Studio 2008 1. LINQ Support LINQ primarily is the structure of many conventional question employees that allow you to perform with information in a more user

how to store multidimensional array in a single column in mysql database using MATLAB?

As an XML expert you are required to model a system for an online bookshop. After an interview with the shop manager you have the following information: The detail of th