Skip to content

Commit

Permalink
fixed html tag selection
Browse files Browse the repository at this point in the history
  • Loading branch information
RafayGhafoor committed Mar 16, 2018
1 parent 8d707a2 commit 91a6f7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion router.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def dhcpinfo(self):
self.dev_info (Dictionary object)
'''
soup = self.scrape_page(url=self.gateway + "dhcpinfo.html", soup='y')
for i in soup.findAll('td'):
td = soup.findAll('td')
for i in td:
if self.mac_pattern.search(i.text):
'''
The HTML page contains hostnames and mac addresses right next
Expand Down

0 comments on commit 91a6f7f

Please sign in to comment.