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

https://books.toscrape.com/ Please extract the URLs of the different genres pages by parsing

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

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!