Skip to content
Advertisement

How to create a link using BeautifulSoup in Python?

I’m trying to build a HTML page that has a table with rows of information (test cases, failed, warning, total # of tests) I want each row in the Test Cases column to be a link to another page. As you see in the image below, my goal is for Test 1 to be a link. enter image description here Below is the code that I wrote to build what you see in the image. Thanks.

JavaScript

Below is code for creating a link that I took from BeautifulSoup documentation:

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement