Program third command line argument, Programming Languages

Assignment Help:

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.


Related Discussions:- Program third command line argument

Develop a system for record student information, Your task for this project...

Your task for this project is to develop a system that would provide the following features: 1. Register new student 2. Drop student from university 3. Add a course and gr

Retrive unicode text using vb.net ado.net, How Can I Retrive Unicode CSV Fi...

How Can I Retrive Unicode CSV File the ADO.net VB.net

Program to compute mixing ratio, Write a program to compute: 1.)    Mixi...

Write a program to compute: 1.)    Mixing ratio, W=.622[Vapor pressure/(pressure-vapor pressure)] 2.)    Virtual temperature, VT=T(1+0.61 mixing ratio) = T(1+.61W) 3.)

Memory hierarchy for linux systems, Memory Hierarchy for Linux Systems ...

Memory Hierarchy for Linux Systems A cache line has one or more valid bit(s), tag entry and list of bytes in a block in one set of a cache, as shown below: If you were

Enter no of hours days months years contains pattern , Normal 0 ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Matlab, I need to write code to compute matrix multiplication without usin...

I need to write code to compute matrix multiplication without using built in function.

Depth estimation, depth estimation from block matching algorithm motion est...

depth estimation from block matching algorithm motion estimation

Write a program to illustrate the call by value, Write a Program to illustr...

Write a Program to illustrate the call by value? #include . int compute_sum(int m); int main( void) { int n=3, sum; printf("%d\n",n); /*3 is printed */ sum=compute_sum(n

What do you understand by the term postback, Question: (a) What do you...

Question: (a) What do you understand by the term Postback? (b) Describe five benefits of creating virtual directories while developing an ASP.NET application. (c) Exp

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd