Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
- 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
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started