Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bitshares Seed Node Ping Test
- DEC12 14:47 EST
- WTFPL - litepresence2018
- PING 301 ms seed01.liondani.com
- PING 289 ms 104.236.144.84
- DOWN 128.199.143.47
- PING 374 ms 209.105.239.13
- PING 296 ms 45.35.12.22
- PING 248 ms 51.15.61.160
- PING 1433 ms bts-seed1.abit-more.com
- PING 400 ms node.blckchnd.com
- DOWN seed.bitsharesdex.com
- PING 330 ms seed.bitsharesnodes.com
- PING 231 ms seed.blocktrades.us
- DOWN seed.cubeconnex.com
- PING 549 ms seed.roelandp.nl
- PING 374 ms seed04.bts-nodes.net
- PING 440 ms seed05.bts-nodes.net
- PING 265 ms seed06.bts-nodes.net
- PING 508 ms seed07.bts-nodes.net
- PING 298 ms seed.bts.bangzi.info
- PING 200 ms seeds.bitshares.eu
- Method:
- import os
- import requests
- uri = 'https://www.textise.net/showText.aspx?strURL=https%253A//'
- url = uri + 'raw.githubusercontent.com/bitshares/bitshares-core/master/libraries/app/application.cpp'
- req = requests.get(url).text
- ret = req.replace(" ", "").replace(",", "").split('seeds={')[1].split('}')[0]
- ret = ret.split('//')
- ret = [i for i in ret if '"' in i]
- ret = [i.split('"')[1] for i in ret]
- ret = [i.split(':')[0] for i in ret]
- for i in ret:
- print(i)
- for i in ret:
- cmd='ping -c 1 ' + i
- a=os.popen(cmd).read()
- try:
- print('PING', a.split('time=')[1].split(' ms')[0], 'ms', i)
- except:
- print(' DOWN', i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement