Skip to content

Commit

Permalink
Create extract_router_relative_links.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafay Ghafoor authored Oct 28, 2017
1 parent 842e194 commit 85486eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extras/extract_router_relative_links.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import re, bs4
with open('menuBcm.js', 'r') as f:
z = f.read()
s = re.findall('\w+[.]html', z)
with open('html_pages.txt', 'a') as x:
for i in s:
x.write('http://192.168.1.1/{}'.format(i.strip()) + '\n')

0 comments on commit 85486eb

Please sign in to comment.