Created
September 30, 2019 13:47
-
-
Save Tylerian/540be81e93c7459451a5b0f44c078347 to your computer and use it in GitHub Desktop.
Get AS Networks total traffic size in PeeringDB.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var finalSpeed = 0; | |
document.querySelectorAll(".list[data-edit-target='api:netixlan'] .scrollable .speed") | |
.forEach(node => { finalSpeed += parseInt(node.textContent.replace("G", "")); }); | |
console.log("AS Total Speed --> ", finalSpeed, "G"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment