Commit 92760ee8 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added script to ping search.

parent b59dc5a5
import requests
import time
from import chemical_symbols
import random
from datetime import datetime
base_url = ''
while True:
start = time.time()
atoms = '&atoms=%s&atoms%s' % (random.choice(chemical_symbols), random.choice(chemical_symbols))
response = requests.get('%s%s%s%s' % (
end = time.time()
print('PING – %s – %f - %s' % (response.status_code, end - start,
except Exception as e:
print('ERROR – %s' % e)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment