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

Class a abstract data type, Class a Abstract Data Type: is a template for c...

Class a Abstract Data Type: is a template for creating objects. A class describes a collection of related objects i.e. instances of the classes. Basically classes are user-defined

Program that takes integer array of 8 elements, Write a program that takes ...

Write a program that takes integer array of 8 elements from user and find the smallest element among them using pointers

Define remote procedure call, Problem: (i) Define Remote Procedure Cal...

Problem: (i) Define Remote Procedure Call (RPC). (ii) Explain with diagram how RPC works? (iii) A remote procedure is uniquely defined by (a) Program number. (b)

Assembly Language, need a program of any multiplication algorithm implement...

need a program of any multiplication algorithm implemented in assembly language x86 without using mul command

Irc or internet relay chat application, Programming Project Specification: ...

Programming Project Specification: IRC or Internet Relay Chat is an application that lets multiple users communicate via text messages with each other in common "virtual" rooms.

What is url describe their protocol, What is URL describe theri protocol? ...

What is URL describe theri protocol? URL basicallt stands for uniform resource locator. A URL is a pointer to a particular resource on the Internet at a particular location.

Miranda, Hi, Can you do exercises: D2, D3, D4, and D5 on page 230 of the fo...

Hi, Can you do exercises: D2, D3, D4, and D5 on page 230 of the following book: http://www.daimi.au.dk/~bra8130/Wiley_book/wiley.html . The book can be downloaded for free from t

Java virtual machine, Expertsmind.com is expert in java assignment help ...

Expertsmind.com is expert in java assignment help JAVA Virtual Machine A Java exclusive device or java virtual machine (JVM) is an exclusive device able of undertaking Jav

3 halves, #1. Every mathematics student likes primes numbers. Every mathema...

#1. Every mathematics student likes primes numbers. Every mathematics student like parabolas. Let''s put them together to have some fun: Consider two natural numbers a and b. Of co

Oracle , PLEASE HELP ME ORACLE PROGRAMING TRIGGER

PLEASE HELP ME ORACLE PROGRAMING TRIGGER

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