Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python WWW API Web and Search Understand the Application The National Academy of Science (NAS) marketing department is interested to get an accurate assessment on

Python WWW API

Web and Search

Understand the Application

The National Academy of Science (NAS) marketing department is interested to get an accurate assessment on the coverage of publicized topics on the current website. The marketing strategy team is divided over which of a list of topics is most widely represented on the website.

You have been hired to put a decision on the business operations (bizops) table as to which topic is most represented on the NAS website.

Specifically we will write a Python3 program that takes the URL of the National Academy of Science and a list of topics. For each topic of interest, your solution intelligence will compute the number of instances of each topic on the NAS website providing a simple yet complete report.

The Program Spec

Write a program that takes the NAS website url: http://www.nasonline.org (Links to an external site.)Links to an external site., downloads the HTML document, and decodes it into a string.

Create a list of the topics under review which include: research, climate, evolution, cultural and leadership. To provide additional insight to the bizops team, include an additional topic of your selection to the review list.

Determine the number of occurrences of each topic that appears on the webpage.

Provide a report summary that specifies the topic of interest and the number of times that the subject presents on the NAS website.

Import the datetime (Links to an external site.)Links to an external site.module to generate the date of your report run. Print this date in your run output.

Deliverable: yournameLab9.py Your source code solution and a copy of the run pasted into your source submission file. Be sure to comment out your run so that your .py file will still run in the grader test bed.

Test Run Requirements:

Here are some other tips and requirements:

1. Topic list contains the list of subjects in the program spec (including a minimum of one additional insight subject presented by you i.e. a minimum of 6 topics).

2. Generate a report summary that pairs the subject with the number of occurrences as measured by number of instances found of the topic on the website.

Here is a sample run:

Today's date is 2017-10-27 research appears 7 times.

...

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions