From 85486eb07e85503742d611b105ace3c07819029b Mon Sep 17 00:00:00 2001 From: Rafay Ghafoor Date: Sat, 28 Oct 2017 18:01:22 +0500 Subject: [PATCH] Create extract_router_relative_links.py --- extras/extract_router_relative_links.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 extras/extract_router_relative_links.py diff --git a/extras/extract_router_relative_links.py b/extras/extract_router_relative_links.py new file mode 100644 index 0000000..67454f2 --- /dev/null +++ b/extras/extract_router_relative_links.py @@ -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') +