Question: https://books.toscrape.com/ Please extract the URLs of the different genres pages by parsing the HTML that renders the side navigation bar. I want the output to
https://books.toscrape.com/ Please extract the URLs of the different genres pages by parsing the HTML that renders the side navigation bar.
I want the output to be something like

Please dont import anything else, it isn't allowed import requests from bs4 import BeautifulSoup import pandas as pd url = "https://books.toscrape.com/" genres = ["Travel", "Mystery", "Historical Fiction", "Sequential Art", "Classics", "Philosophy"] # write your code below
catalogue/category/books/travel_2/index.html catalogue/category/books/mystery_3/index.html catalogue/category/books/historical-fiction_4/index.html catalogue/category/books/sequential-art_5/index.html catalogue/category/books/classics_6/index.html
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
