这是下面给出的给定html
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<div class="table-responsive grid_class">
<table class="table lightgallery">
<thead>
<tr class="active">
<th class="col-md-9">Col A</th>
<th class="col-md-2">Col B</th>
</tr>
</thead>
<tr>
<td class="">
<span>some text here
</span>
</span>
</span>
</td>
<td class="text-nowrap" style="font-size: 13px;"><span>some text here also</span></td>
</tr>
<tr>
<td class="">
<span>some text here
</span>
</span>
</span>
</td>
<td class="text-nowrap" style="font-size: 13px;"><span>some text here also</span></td>
</tr>
</table>
</div>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script>
如何只获取 html 而不是 python 中的库?
我尝试了urllib
图书馆和request
图书馆,但它不起作用
任何帮助将不胜感激,并提前感谢