Question: This assignment should be written in PYTHON programming language Write python programs to answer the following questions. Everything should be dynamically scraped from the live

This assignment should be written in PYTHON programming language

Write python programs to answer the following questions. Everything should be dynamically scraped from the live websites using the Beautiful Soup interface.

  1. Data.gov (relevant url, http://catalog.data.gov/dataset?q=&sort=metadata_created+desc): accept an integer as input and find the name (href text) of the nth "most recent" dataset on data.gov. For example, if the user enters 1, print the name of the first dataset on data.gov when ordered by "date added. You can assume that the dataset appears on the first page.It is possible to prompt and receive user input in a jupyter notebook cell using the standard python input syntax. Try this code:
    num = input("Enter a number: ") print(num) 

    Example (based on data when viewed on 2/18/2019): Which dataset? 4 Summary of RHESSys Simulations of GI Sensitivity 
  2. White House Press Briefings (relevant url: https://www.whitehouse.gov/briefing-room/press-briefings) Programmatically find the link for the most recent press conference (this will be the first one on the page identified by the "Remarks" subheader), follow the link and display the time that the briefing took place. Note that the url for the most recent press briefing should not be hardcoded. If a new press briefing is added, your program should give the time of the newly added briefing. Test your code with several press briefings to be sure it is consistently getting the correct time.
    Example output: https://www.whitehouse.gov/briefings-statements/remarks-vice-president-pence-2019-munich-security-conference-munich-germany/ Time of most recent White House Press Briefing Issued on: 11:41 A.M. CEST

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!