Question: Python Project Create RSS feed of CSSE Dept. News Write a Python script, pythonproject.py, to create a RSS feed of the first 20 news items

Python Project

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!