pip install abondance
Get the latest source files:
git clone git@github.com:InternetHealthReport/abondance.git
Install dependencies and install abondance:
cd abondance
sudo pip install -r requirements.txt
sudo python setup.py install
from ihr.hegemony import Hegemony hege = Hegemony(originasns=[2501], start="2018-09-15 00:00", end="2018-09-15 23:59") for r in hege.get_results(): print(r)
from ihr.hegemony import Hegemony hege = Hegemony(asns=[2500], start="2018-09-15 00:00", end="2018-09-15 23:59") for r in hege.get_results(): # Skip results from the global graph if r["originasn"] == 0: continue print(r)
from ihr.delay import Delay res = Delay(asns=[7922], start="2018-09-15 00:00", end="2018-9-15 23:59") for r in res.get_results(): print(r)
from ihr.forwarding import Forwarding res = Forwarding(asns=[7922], start="2018-09-15 00:00", end="2018-9-15 23:59") for r in res.get_results(): print(r)