Below is the html source of url:
<h1>Queue <<hotspot-00:26:BB:05:BB:10>> Statistics </h1>
<ul>
<li>Source-addresses: 10.10.1.130
<li>Destination-address: ::/0
<li>Max-limit: 1.02Mb/2.04Mb (Total: <i>unlimited</i>)
<li>Limit-at: 1.02Mb/2.04Mb (Total: <i>unlimited</i>)
<li>Last update: Mon Sep 23 21:41:16 2019
</ul>
and here's my code:
Note that links is list of urls
for link in links:
page = requests.get(link).text
sp1 = BeautifulSoup(page, "html.parser").findAll('h1')
sp2 = BeautifulSoup(page, "html.parser").findAll('li')
print(sp1,sp2)
Current OUTPUT
[<h1>Queue <<hotspot-00:26:BB:05:BB:10>> Statistics </h1>] [<li>Source-addresses: 10.10.1.130
<li>Destination-address: ::/0
<li>Max-limit: 1.02Mb/2.04Mb (Total: <i>unlimited</i>)
<li>Limit-at: 1.02Mb/2.04Mb (Total: <i>unlimited</i>)
<li>Last update: Tue Sep 24 00:27:05 2019
Trying to edit my code to get the following output.
hotspot-00:26:BB:05:BB:10, Limit-at: 1.02Mb/2.04Mb (Total: <i>unlimited
print(sp1,sp2)? Edit that into your answer.