Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
For Python, using IDLE
Write a program to read in a web page, process the data, and write out the quotes to the screen called
_PA32 that will scrape the webpage https://quotes.toscrape.com/page/2/ onto your
program screen. Make sure to include your student id in the first print statement of the program and
output the parsed quotes with their authors.
Create a function named readwebpage which opens the url https://quotes.toscrape.com/page/2/
parses the data using a second function and the outputs the quotes and authors using a 3rd function.
Take a screenshot of your completed program and another of your output
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.Similar questions
- Q1. Within your Jupyter Notebook, write the code for a Python function called def parseWeatherByYear(year) : This function will parse an html page containing weather for an entire year of data for the city of Toronto. The html pages containing weather data can be downloaded from: https://www.extremeweatherwatch.com/cities/toronto/year-2023 The file to parse for this lab however can be downloaded here: https://matrix.senecacollege.ca/~danny.abesdris/prg550.232/labs/lab6/torontoWeather.2023.html The html file itself contains markers as where to begin parsing the data to extract. The 3 pieces of data that must be extracted consist of the high and low temperatures (in degrees Celsius) as well as the amount of precipitation (in cm) for every day so far in the current year (2023). A series of lines containing where to begin extracting data is listed below: <td><div class='width-130'><a href='/cities/toronto/day/january-1'>January 1</a></div></td> <td…arrow_forwardI'm trying to complete the function for my HTML filearrow_forwardomplete this javascript file according to the individual instructionsgiven in the comments. *** DO NOT CHANGE any of the code that you are not instructed to. */ ////////////////////////// NOTE: Use the API endpoints available at// https://jsonplaceholder.typicode.com/// to get the data required in these exercises.// HINT: Read the documented Resources and Routes.// Also the guide:// https://jsonplaceholder.typicode.com/guide//////////////////////// Create a function named "getUser".// This function needs to accept a "userID"// parameter.// Use Fetch with Async/Await to request// the data for the requested user.// The function should return JSON data.arrow_forward
- USE THE SIMPLE PYTHON CODE PLEASE The username code. The company can choose the specific criteria for the username. The criteria is as follows: a minimum length, a minimum number of capital letters, and a minimum number of special characters. Special charters are [$, #, ^, %, . etc]. You will turn in three .py files. The first file called main.py contains your main interface. The second file called functions.py contains all the functions your main code. The third file called parameters.py contains the parameters of the code: the special character list, the minimum length, the minimum number of special characters, the minimum number of capital letters, and the number of tries the user gets to input user name. Your code operates as follows. Display the criteria for the username. Prompt the user to input a username. If the username does not meet criteria, tell the user why and re prompt to enter in a username. Repeat until you reach the maximum number of tries allowed.arrow_forwardManagement has given you the greenlight to create the product portion of the web application. Create a Product class with the following attributes: a. Price b. Name c. Description d. Id Create a ShoppingCart.js file and include it in the products page. In the script, create an empty array to store the items added to the cart. Create a products array and create a product object for each of your products and store it in the products array when the script loads. The shopping cart script should have the following functions: a. add - Takes an id, finds the product object in the products array and adds it to the items purchased array. b. remove - Takes an id and removes the corresponding object from the items purchased array. c. Returns html for displaying the items in the cart. Create a products.html page. Add 5 product images to the page. Under each product add an add to cart button. Make the id property of the button the id for the product.…arrow_forwardLab Tasks – complete these Use the information provided here, in the slideshow and in chapter 12 of our text to do the following exercise. Step 1: On the desktop or wherever you will be saving your java program, use notepador other basic text editor (NOT WORD) to create a .txt file. In this file, type out a list of 10 integers (one on each line or with a space between each). Save. Do this manually. Not with Java. Step 2. Now write a program with the following: 1) In the program creating a File object that connects to the .txt file that you just created. 2) Add code that will check if the file exists and if it doesn’t, it will create it. (Yes, we know it definitely exists but do this part anyway.) 3) Set up a Scanner so that you can read the values from the file and print them to the screen using a loop. You will probably need to use the .hasNext() method. Also, you may want to set up a counter to keep track of how many values there are for future use. (Note that the .length()…arrow_forward
- C++ I have a code, but it doesn't work well. Please help me fix it. The code read 2 file, Punchcards.txt as a key (for password) and Tuple.csv as the password. Punchcards.txt --------------------------------------------------------------------------------Y 00000000000000000000000000000000000000000000000000000000000000000000000000000000X 000000000000000000000000000000000000000000000000000000000000000000000000000000000 100000000000000000000000000000000000000000000000000000000000000000000000000000001 010000000000000000000000000000000000000000000000000000000000000000000000000000002 001000000000000000000000000000000000000000000000000000000000000000000000000000003 000100000000000000000000000000000000000000000000000000000000000000000000000000004 000010000000000000000000000000000000000000000000000000000000000000000000000000005 000001000000000000000000000000000000000000000000000000000000000000000000000000006 000000100000000000000000000000000000000000000000000000000000000000000000000000007…arrow_forwardD Listeh A list in Python can be composed of which of the following data types? Integers O Strings Other Lists O All of the above Pa Next Pagearrow_forwardAssignment Create a simple JavaScript calculator. The Calculator needs to do the following STRANGE functions: • Only has buttons for numbers 0 to 7 • Buttons are aligned in a shape of a triangle like this: 12 4567 + • Operations are aligned below the numbers as seen above. • Please ZIP everything (HTML, JS, Javascript, images, everything.) into one zipped file and submit it. • Only ZIPPED file with .zip extension are accepted.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY