Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Project - CSSE News RSS Feed Create RSS feed of CSSE Dept. News Write a Python script, pythonproject.py, to create a RSS feed of

Python Project - CSSE News RSS Feed

Create RSS feed of CSSE Dept. News

Write a Python script, pythonproject.py, to create a RSS feed of the first 20 news items at http://www.monmouth.edu/academics/CSSE/news.asp.

Use a Python package to retrieve the html code at http://www.monmouth.edu/academics/CSSE/news.asp.

Retrieve the web page over the network, i.e., use no input file.

Write the RSS feed XML file, cssenews.rss.xml, to the current directory.

A copy of cssenews.rss.xml must be saved to the public_html directory under your home directory, so that it can be published to the Web.

cssenews.rss.xml will consist of the news headlines, descriptions, and url links to the corresponding sections of the CSSE department news page.

Example: If the headline "Departments of Computer Science and Software Engineering Merged" is chosen, the corresponding URL is http://www.monmouth.edu/academics/CSSE/news.asp#CSSEMerger.

A valid URL at which your RSS feed can be tested

Example: http://rockhopper.monmouth.edu/~jchung/cssenews.rss.xml

NOTE: You must install the script-generated cssenews.rss.xml file in your ~/public_html directory to get credit for this project.

After copying the cssenews.rss.xml to your ~/public_html directory, run the setwebperms command in a Terminal to set web permissions correctly in ~/public_html.

Notes:

Your script needs to parse out the individual headlines as well as the corresponding name attribute for the headline.

The name attributes follow the

Your script then has to form the URL from the name attribute, e.g., for the name attribute GradChanges2009, the URL would be http://www.monmouth.edu/academics/CSSE/news.asp#GradChanges2009.

You must use the PyRSS2Gen module to generate the RSS feed content.

Copy the PyRSS2Gen.py module file to your script's directory to use it.

In cssenews.rss.xml, the article description must consist of the first few complete sentences of the article but must be no more than 75 words. That is, you must get as close to 75 words as possible, using complete sentences.

Your script must generate a valid RSS feed. Use https://validator.w3.org/feed/ to validate your RSS feed. Your RSS feed must validate with no errors or warnings. Remove all html elements from your titles and descriptions.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions