Skip to content

Instantly share code, notes, and snippets.

View vivekagr's full-sized avatar

Vivek Agarwal vivekagr

View GitHub Profile
@vivekagr
vivekagr / router_stats.py
Last active December 14, 2015 06:19
Gathers and prints IP Address, WAN Status, SNR Margin, attenuation and transfer rate from ITI DNA-A211-I modem.
import sys
import re
from time import sleep
import requests
from requests.auth import HTTPBasicAuth
from bs4 import BeautifulSoup
from termcolor import colored
MAIN_PAGE_URL = "http://192.168.1.1/info.html"