import requests
import sys
HOST = 'http://localhost'
PORT = 9090
RESSOURCE = sys.argv[1]
PARAM = sys.argv[2]
FILENAME = sys.argv[3]
query = HOST + ':' + str(PORT) + RESSOURCE
print(query)
r = requests.get(query, allow_redirects=True, params={'query': PARAM})
text = r.text
print(text)
file = open(FILENAME, 'w')
file.write(text)
file.close()

b686fd94b241306025f02356ea7f616a7a6cdf74
<mask token>

<mask token>
print(query)
<mask token>
print(text)
<mask token>
file.write(text)
file.close()

<mask token>
HOST = 'http://localhost'
PORT = 9090
RESSOURCE = sys.argv[1]
PARAM = sys.argv[2]
FILENAME = sys.argv[3]
query = HOST + ':' + str(PORT) + RESSOURCE
print(query)
r = requests.get(query, allow_redirects=True, params={'query': PARAM})
text = r.text
print(text)
file = open(FILENAME, 'w')
file.write(text)
file.close()

import requests
import sys
HOST = 'http://localhost'
PORT = 9090
RESSOURCE = sys.argv[1]
PARAM = sys.argv[2]
FILENAME = sys.argv[3]
query = HOST + ':' + str(PORT) + RESSOURCE
print(query)
r = requests.get(query, allow_redirects=True, params={'query': PARAM})
text = r.text
print(text)
file = open(FILENAME, 'w')
file.write(text)
file.close()
